Fixed #25083 -- Added SessionAuthenticationMiddleware to auth installation docs
This commit is contained in:
parent
2e05ef4e18
commit
f0857c09fb
|
@ -60,12 +60,14 @@ startproject <startproject>`, these consist of two items listed in your
|
||||||
</ref/contrib/contenttypes>`, which allows permissions to be associated with
|
</ref/contrib/contenttypes>`, which allows permissions to be associated with
|
||||||
models you create.
|
models you create.
|
||||||
|
|
||||||
and two items in your :setting:`MIDDLEWARE_CLASSES` setting:
|
and these items in your :setting:`MIDDLEWARE_CLASSES` setting:
|
||||||
|
|
||||||
1. :class:`~django.contrib.sessions.middleware.SessionMiddleware` manages
|
1. :class:`~django.contrib.sessions.middleware.SessionMiddleware` manages
|
||||||
:doc:`sessions </topics/http/sessions>` across requests.
|
:doc:`sessions </topics/http/sessions>` across requests.
|
||||||
2. :class:`~django.contrib.auth.middleware.AuthenticationMiddleware` associates
|
2. :class:`~django.contrib.auth.middleware.AuthenticationMiddleware` associates
|
||||||
users with requests using sessions.
|
users with requests using sessions.
|
||||||
|
3. :class:`~django.contrib.auth.middleware.SessionAuthenticationMiddleware`
|
||||||
|
logs users out of their other sessions after a password change.
|
||||||
|
|
||||||
With these settings in place, running the command ``manage.py migrate`` creates
|
With these settings in place, running the command ``manage.py migrate`` creates
|
||||||
the necessary database tables for auth related models and permissions for any
|
the necessary database tables for auth related models and permissions for any
|
||||||
|
|
Loading…
Reference in New Issue