Changes between Version 13 and Version 14 of MultipleAuthBackends
- Timestamp:
- May 12, 2006, 3:45:18 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MultipleAuthBackends
v13 v14 72 72 When you call {{{authenticate}}} or {{{get_user}}} on {{{MultiAuthBackend}}}, it will in turn call the same method on each backend in {{{MULTIAUTH_BACKENDS}}} in order. 73 73 74 75 ---- 76 77 Start: Added by a relative newbie on May 12, 2006 78 74 79 Note: 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: 75 80 … … 85 90 86 91 I 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 93 End of newbie addition 94 95 ---- 96 87 97 88 98 == Writing Backends == … … 101 111 102 112 === sample LDAPBackend class === 113 114 From the same newbie as above on May 12, 2006 103 115 104 116 This 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.