Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.6.x] Fixed #20900 -- Documented RemoteUserBackend.authenticate

Backport of 7b62b80 from master
  • Loading branch information...
1 parent 77cf0d6 commit 622d5c7650642a2f8daeaae6fac68d142330e993 @timgraham timgraham committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 docs/howto/auth-remote-user.txt
11 docs/howto/auth-remote-user.txt
@@ -87,6 +87,17 @@ Attributes
+.. 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

0 comments on commit 622d5c7

Please sign in to comment.
Something went wrong with that request. Please try again.