Skip to content

Commit d12b893

Browse files
committed
actualize docs about AuthenticationMiddleware
1 parent 9dd1033 commit d12b893

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/tutorial/tutorial_03.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ which takes care of token verification. In your settings.py:
2424
2525
MIDDLEWARE = [
2626
'...',
27-
# If you use SessionAuthenticationMiddleware, be sure it appears before OAuth2TokenMiddleware.
28-
# SessionAuthenticationMiddleware is NOT required for using django-oauth-toolkit.
29-
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
27+
# If you use AuthenticationMiddleware, be sure it appears before OAuth2TokenMiddleware.
28+
# AuthenticationMiddleware is NOT required for using django-oauth-toolkit.
29+
'django.contrib.auth.middleware.AuthenticationMiddleware',
3030
'oauth2_provider.middleware.OAuth2TokenMiddleware',
3131
'...',
3232
]
@@ -44,8 +44,8 @@ not used at all, it will try to authenticate user with the OAuth2 access token a
4444
`request.user` and `request._cached_user` fields so that AuthenticationMiddleware (when active)
4545
will not try to get user from the session.
4646

47-
If you use SessionAuthenticationMiddleware, be sure it appears before OAuth2TokenMiddleware.
48-
However SessionAuthenticationMiddleware is NOT required for using django-oauth-toolkit.
47+
If you use AuthenticationMiddleware, be sure it appears before OAuth2TokenMiddleware.
48+
However AuthenticationMiddleware is NOT required for using django-oauth-toolkit.
4949

5050
Protect your view
5151
-----------------

0 commit comments

Comments
 (0)