Skip to content

Commit 25f6de5

Browse files
authored
Actualize docs about AuthenticationMiddleware (#1267)
* actualize docs about AuthenticationMiddleware * add myself to authors
1 parent 9dd1033 commit 25f6de5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Dulmandakh Sukhbaatar
4040
Dylan Giesler
4141
Dylan Tack
4242
Eduardo Oliveira
43+
Egor Poderiagin
4344
Emanuele Palazzetti
4445
Federico Dolce
4546
Frederico Vieira

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)