|
@@ -27,19 +27,17 @@ use of the ``REMOTE_USER`` value using the ``RemoteUserMiddleware`` and
|
|
|
Configuration
|
|
|
=============
|
|
|
|
|
|
-.. class:: django.contrib.auth.middleware.RemoteUserMiddleware
|
|
|
-
|
|
|
First, you must add the
|
|
|
:class:`django.contrib.auth.middleware.RemoteUserMiddleware` to the
|
|
|
:setting:`MIDDLEWARE_CLASSES` setting **after** the
|
|
|
:class:`django.contrib.auth.middleware.AuthenticationMiddleware`::
|
|
|
|
|
|
MIDDLEWARE_CLASSES = (
|
|
|
- ...
|
|
|
+ '...',
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
|
'django.contrib.auth.middleware.RemoteUserMiddleware',
|
|
|
- ...
|
|
|
- )
|
|
|
+ '...',
|
|
|
+ )
|
|
|
|
|
|
Next, you must replace the :class:`~django.contrib.auth.backends.ModelBackend`
|
|
|
with ``RemoteUserBackend`` in the :setting:`AUTHENTICATION_BACKENDS` setting::
|