Django

Code

Changeset 2919

Show
Ignore:
Timestamp:
05/16/06 11:27:36 (2 years ago)
Author:
jkocherhans
Message:

multi-auth: Small formatting changes to docs/authentication.txt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/multi-auth/docs/authentication.txt

    r2918 r2919  
    660660 
    661661The Django admin system is tightly coupled to the Django User object described  
    662 at the beginning of this document. For now, the best way to deal with this is to 
    663 create a Django User object for each user that exists for your backend (i.e. 
    664 in your ldap directory, your external sql database, etc.) You can either  
     662at the beginning of this document. For now, the best way to deal with this is  
     663to create a Django User object for each user that exists for your backend  
     664(i.e. in your ldap directory, your external sql database, etc.) You can either  
    665665write a script to do this in advance, or your ``authenticate`` method can do  
    666 it the first time a user logs in. `django.contrib.auth.backends.SettingsBackend`_ 
    667 is an example of the latter approach. Note that you don't have to save a user's 
    668 password in the Django User object. Your backend can still check the password 
    669 against an external source, and return a Django User object. 
     666it the first time a user logs in.  
     667`django.contrib.auth.backends.SettingsBackend`_ is an example of the latter  
     668approach. Note that you don't have to save a user's password in the Django  
     669User object. Your backend can still check the password against an external  
     670source, and return a Django User object. 
    670671 
    671672.. _django.contrib.auth.backends.SettingsBackend: http://code.djangoproject.com/browser/django/branches/magic-removal/django/contrib/auth/backends.py