Changes between Version 13 and Version 14 of MultipleAuthBackends


Ignore:
Timestamp:
May 12, 2006, 3:45:18 PM (19 years ago)
Author:
Chris Isbell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MultipleAuthBackends

    v13 v14  
    7272When you call {{{authenticate}}} or {{{get_user}}} on {{{MultiAuthBackend}}}, it will in turn call the same method on each backend in {{{MULTIAUTH_BACKENDS}}} in order.
    7373
     74
     75----
     76
     77Start: Added by a relative newbie on May 12, 2006
     78
    7479Note: In the multi-auth branch (2892), you need to set AUTHENTICATION_BACKENDS to a tuple, similar to MULTIAUTH_BACKENDS above.  the {{{authenticate}}} method looks for this setting in your settings.py file.  I have it working and all I have is:
    7580
     
    8590
    8691I also hacked the contrib.auth.models file to change the check_password function to check against our LDAP server, and added a few small functions to check the type of user account.  I know this will break next time I update the source, but I have a copy of that as well.  There is surely a better way, but I'm still learning.
     92
     93End of newbie addition
     94
     95----
     96
    8797
    8898== Writing Backends ==
     
    101111
    102112=== sample LDAPBackend class ===
     113
     114From the same newbie as above on May 12, 2006
    103115
    104116This is located in the contrib/auth/copy_of_backends.py file.  The two original models are still in the file as well.  I just added this one in the middle.
Back to Top