AuthKit Authorization Manager?

2007-06-13 Thread HiTekElvis
Hey, everybody- I just started using AuthKit and have it working pretty snappily. Very pleased. Have a question: Is there a way to have a sort of Authorization Manager, where you can keep all of the permissions and authorizations in one file and don't have decorators and such sprinkled

Re: AuthKit Authorization Manager?

2007-06-13 Thread Christoph Haas
On Wed, Jun 13, 2007 at 11:28:31AM -0700, HiTekElvis wrote: I just started using AuthKit and have it working pretty snappily. Very pleased. Have a question: Is there a way to have a sort of Authorization Manager, where you can keep all of the permissions and authorizations in one file

Re: AuthKit Authorization Manager?

2007-06-13 Thread Antonio Beamud Montero
El mi�, 13-06-2007 a las 11:28 -0700, HiTekElvis escribi�: Hey, everybody- I just started using AuthKit and have it working pretty snappily. Very pleased. Have a question: Is there a way to have a sort of Authorization Manager, where you can keep all of the permissions and

Re: AuthKit Authorization Manager?

2007-06-13 Thread voltron
Since both of you have AuthKit working, how does one set a session for an authenticated user? How do you set the REMOTE_USER? I thought of creating a session variable like isauthenticated = True but it has to be set after REMOTE_USER is set, which i my case, is a headache

Re: AuthKit Authorization Manager?

2007-06-13 Thread Daniel Tang
On 6/13/07, voltron [EMAIL PROTECTED] wrote: Since both of you have AuthKit working, how does one set a session for an authenticated user? How do you set the REMOTE_USER? I thought of creating a session variable like isauthenticated = True but it has to be set after REMOTE_USER is set, which

Re: AuthKit Authorization Manager?

2007-06-13 Thread Michael G. Noll
On Jun 13, 9:28 pm, voltron [EMAIL PROTECTED] wrote: Since both of you have AuthKit working, how does one set a session for an authenticated user? How do you set the REMOTE_USER? I thought of creating a session variable like isauthenticated = True but it has to be set after REMOTE_USER is

Re: AuthKit Authorization Manager?

2007-06-13 Thread voltron
Yes, I am following a specific guide, this one: http://pylonshq.com/project/pylonshq/wiki/PylonsWithAuthKitDatabase Its the only guide that explains how to use AuthKit with a database I am running these versions Michael: Pylons-0.9.5-py2.4 AuthKit-0.3.0pre5-py2.4 thanks

Re: AuthKit Authorization Manager?

2007-06-13 Thread voltron
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

Re: AuthKit Authorization Manager?

2007-06-13 Thread voltron
On last try, I can get this to work now in my controller: # test username = voltron request.environ['paste.auth_tkt.set_user'](username) c.env1 = request.environ['REMOTE_USER'] when I try to output c.env1 in my template, i get a traceback exceptions.KeyError: 'REMOTE_USER' I can feel it,

Re: AuthKit Authorization Manager?

2007-06-13 Thread ben adam
Good! guess I should've mentioned the middleware file also... both approaches should work the same. On Jun 13, 4:00 pm, voltron [EMAIL PROTECTED] wrote: I apologize, I am a dork, I was so near to trashing my computer, I added this to my middleware.py import authkit.authenticate app =

Re: AuthKit Authorization Manager?

2007-06-13 Thread ben adam
the way i understand it works is: after request.environ['paste.auth_tkt.set_user'](username) you need to redirect to some page after that you'd have access to REMOTE_USER On Jun 13, 4:08 pm, voltron [EMAIL PROTECTED] wrote: On last try, I can get this to work now in my controller: # test