3rd party auth backend access to session object

2006-11-01 Thread [EMAIL PROTECTED]
I need to add session keys to the session right from my LDAP authenication backend. I think it is as simple as passing the session object to the backend during authentication. Has anyone else needed this kind of functionality? maybe there is a simpler way of accessing the session in a 3rd party au

Re: 3rd party auth backend access to session object

2006-11-03 Thread Joseph Kocherhans
On 11/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I need to add session keys to the session right from my LDAP > authenication backend. I think it is as simple as passing the session > object to the backend during authentication. Has anyone else needed > this kind of functionality? mayb

Re: 3rd party auth backend access to session object

2006-11-03 Thread [EMAIL PROTECTED]
I want to create a bunch of Session Attributes during login. Mostly attrs from Active Directory that need to be available without too many additional calls to the LDAP server. User attempts log in -> 3rd party login backend is called -> session is also passed to the 3rd party backend -> session k

Re: 3rd party auth backend access to session object

2006-11-04 Thread Gary Wilson
[EMAIL PROTECTED] wrote: > I want to create a bunch of Session Attributes during login. Mostly > attrs from Active Directory that need to be available without too many > additional calls to the LDAP server. > > User attempts log in -> 3rd party login backend is called -> session is > also passed t

Re: 3rd party auth backend access to session object

2006-11-06 Thread [EMAIL PROTECTED]
Actually, I am using django.contrib.auth "backends" style login/validation. This makes it so I do not have to implement the actual login request processing, only provide a backend class that offers authenticate() and get_user() methods. perhaps a third function can be optional: add_to_session(d