Loading docs/howto/auth-remote-user.txt +3 −5 Original line number Diff line number Diff line Loading @@ -27,18 +27,16 @@ 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` Loading docs/ref/middleware.txt +5 −0 Original line number Diff line number Diff line Loading @@ -204,6 +204,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. .. class:: SessionAuthenticationMiddleware .. versionadded:: 1.7 Loading Loading
docs/howto/auth-remote-user.txt +3 −5 Original line number Diff line number Diff line Loading @@ -27,18 +27,16 @@ 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` Loading
docs/ref/middleware.txt +5 −0 Original line number Diff line number Diff line Loading @@ -204,6 +204,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. .. class:: SessionAuthenticationMiddleware .. versionadded:: 1.7 Loading