diff options
| author | Ross Brunton <bruntonross@gmail.com> | 2015-02-25 18:57:47 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-03-02 19:57:26 -0500 |
| commit | 1c0f66f371a3786d0e90950faf66aa9e462b2aef (patch) | |
| tree | 08012de2d852cc573bd1c8cda4edf684e587f361 /docs/howto/auth-remote-user.txt | |
| parent | 5ebe921a8e4ea947580467b904105e14cbef3071 (diff) | |
[1.7.x] Fixed #24379 -- Documented that remote user example disables ModelBackend.
Backport of 6b28e957df364532109a1897c73a1fa8b1416bd4 from master
Diffstat (limited to 'docs/howto/auth-remote-user.txt')
| -rw-r--r-- | docs/howto/auth-remote-user.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/howto/auth-remote-user.txt b/docs/howto/auth-remote-user.txt index dc96a98bbc..8d1d44af1d 100644 --- a/docs/howto/auth-remote-user.txt +++ b/docs/howto/auth-remote-user.txt @@ -50,6 +50,18 @@ With this setup, ``RemoteUserMiddleware`` will detect the username in ``request.META['REMOTE_USER']`` and will authenticate and auto-login that user using the :class:`~django.contrib.auth.backends.RemoteUserBackend`. +Be aware that this particular setup disables authentication with the default +``ModelBackend``. This means that if the ``REMOTE_USER`` value is not set +then the user is unable to log in, even using Django's admin interface. +Adding ``'django.contrib.auth.backends.ModelBackend'`` to the +``AUTHENTICATION_BACKENDS`` list will use ``ModelBackend`` as a fallback +if ``REMOTE_USER`` is absent, which will solve these issues. + +Django's user management, such as the views in ``contrib.admin`` and +the :djadmin:`createsuperuser` management command, doesn't integrate with +remote users. These interfaces work with users stored in the database +regardless of ``AUTHENTICATION_BACKENDS``. + .. note:: Since the ``RemoteUserBackend`` inherits from ``ModelBackend``, you will still have all of the same permissions checking that is implemented in |
