O'Reilly logo

Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites by Gigi Sayfan, Kevin Dangoor, Mark Ramm

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 22.1. Basic Authentication/Authorization with Identity

The TurboGears Identity framework defaults to using your application’s database to store usernames, privilege information, and passwords. For most stand-alone web applications this is what you want; but it isn’t at all hard to validate against an external provider.

As we saw briefly in the WhatWhat Status application, Identity provides a simple API for defining access restrictions to individual pages, page sections, or whole “directory trees.” While you can go back in later and add Identity to an existing project, it’s easier to install Identity when you create the project by answering Yes when tg-admin quickstart asks if you want Identity. This automatically generates the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required