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 ...
Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.