On 6 Mar, 2006, at 2:53 am, Mike Orr wrote:
One, hit an explicit login URL which serves up a form. You fill out the form and submit it. Identity pulls the user_name and password from the form and logs you in. Your controller method simply checks to see whether the current visitor is anonymous. Two, you're controller method is set to require certain permissions. The current visitor doesn't have those permissions, so TG displays your login page *at the same URL* as the protected resource. When the visitor submits his credentials, Identity pulls the user_name and password from the form and logs the visitor in. Your protected controller is then called again (and this may repeat if the visitor's credentials don't give him access to this controller). The tg_identity_login form variable is intended to differentiate scenario 2 from any other form that happens to include user_name and password (like a registration form).
-- Jeff Watkins "Computers are like Old Testament gods; lots of rules and no mercy." -- Joseph Campbell --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~--- |
- [TurboGears] Re: Tweak to identity Jeff Watkins
- [TurboGears] Re: Tweak to identity Travis Bradshaw
- [TurboGears] Re: Tweak to identity Jeff Watkins

