Hi
Built-in `authenticate` function takes `**credentials` parameters that
when pass to backend. So if you need request object in backed you have
to pass it to built-in function.  Examle:

from django.contrib import auth

def my_view( request ):
   #...
   auth.authenticare( username = username,
                              password = password,
                              request = request )

class MyBackend:
   def authenticate( self, username, password, request ):
      #...

On Feb 14, 3:55 pm, "Hanne Moa" <[EMAIL PROTECTED]> wrote:
> I'm writing an authentication-backend and need to check if a cookie
> already exists. But: how do I get ahold of the HttpRequest?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to