Chapter 7.1.1. WhatWhat Security and Identity

Before we start looking inside of the index method, there’s another import TurboGears feature at use here that deserves a closer look. Jeff Watkins created an authentication and authorization framework that allows TurboGears applications to define users, groups, and permissions and makes it easy to secure particular resources in your website to specific users or those who are members of a particular group. Jeff Watkins created TurboGears identity with a remarkably simple application programming interface (API).

You can decorate any controller with the require method from the turbogears.identity, with whatever restrictions you need. To restrict access to the DashboardController index method to only ...

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.