For signin, after I have authenticated the user I call:
          request.environ['paste.auth_tkt.set_user'](username)

For signout if the user clicks on the link that calls /account/signout
then authkit will log the user out for you, you don't have to do it
explicitly.


On Jun 13, 3:00 pm, voltron <[EMAIL PROTECTED]> wrote:
> How do you then set REMOTE_USER Ben? Does
> request.environ['paste.auth_tkt.logout_user'](username) work for you?
>
> On Jun 13, 11:54 pm, ben adam <[EMAIL PROTECTED]> wrote:
>
> > This is what I have in my .ini file:
>
> > authkit.enable = true
> > authkit.method = forward
> > authkit.signin = /account/signin
> > authkit.cookie.signout = /account/signout
> > authkit.cookie.secret = your cookie secret
> > authkit.cookie.params = domain: .<your_domain_name>
> > authkit.catch = 401, 403
>
> > Based on above settings make sure you have a controller "account" and
> > action "signin" that takes you to the signin form, and action
> > "signout" that takes you to the signout page.
>
> > On Jun 13, 1:58 pm, voltron <[EMAIL PROTECTED]> wrote:
>
> > > Oh yes, the cookie is set, and I can print out all other
> > > request.environ keys, set_user is not present


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to