Skip to content

Commit

Permalink
Fixed #20900 -- Documented RemoteUserBackend.authenticate
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Sep 5, 2013
1 parent bab039d commit 7b62b80
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/howto/auth-remote-user.txt
Expand Up @@ -87,6 +87,17 @@ Attributes
Methods
~~~~~~~

.. method:: RemoteUserBackend.authenticate(remote_user)

The username passed as ``remote_user`` is considered trusted. This method
simply returns the ``User`` object with the given username, creating a new
``User`` object if :attr:`~RemoteUserBackend.create_unknown_user` is
``True``.

Returns ``None`` if :attr:`~RemoteUserBackend.create_unknown_user` is
``False`` and a ``User`` object with the given username is not found in the
database.

.. method:: RemoteUserBackend.clean_username(username)

Performs any cleaning on the ``username`` (e.g. stripping LDAP DN
Expand Down

0 comments on commit 7b62b80

Please sign in to comment.