Permalink
Browse files

[1.6.x] Added RemoteUserMiddleware to middleware reference page.

Backport of 465980d from master.
  • Loading branch information...
timgraham committed Apr 16, 2014
1 parent 724ccd2 commit a476b15aa594f9b63d2ff32c65783f50dc47c63e
Showing with 8 additions and 5 deletions.
  1. +3 −5 docs/howto/auth-remote-user.txt
  2. +5 −0 docs/ref/middleware.txt
@@ -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::
View
@@ -185,6 +185,11 @@ Adds the ``user`` attribute, representing the currently-logged-in user, to
every incoming ``HttpRequest`` object. See :ref:`Authentication in Web requests
<auth-web-requests>`.
+.. class:: RemoteUserMiddleware
+
+Middleware for utilizing Web server provided authentication. See
+:doc:`/howto/auth-remote-user` for usage details.
+
CSRF protection middleware
--------------------------

0 comments on commit a476b15

Please sign in to comment.