Skip to content

Commit 1a306b7

Browse files
committed
clearer docs in tutorial3
1 parent 79cfffe commit 1a306b7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/tutorial/tutorial_03.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ which takes care of token verification. In your settings.py:
1717
1818
AUTHENTICATION_BACKENDS = (
1919
'oauth2_provider.backends.OAuth2Backend',
20+
# Uncomment following if you want to access the admin
21+
#'django.contrib.auth.backends.ModelBackend'
2022
'...',
2123
)
2224
@@ -26,8 +28,9 @@ which takes care of token verification. In your settings.py:
2628
'...',
2729
)
2830
29-
You can use `django.contrib.auth.backends.ModelBackend` along with the OAuth2 backend, but pay
30-
attention to the order in which Django processes authentication backends.
31+
You will likely use the `django.contrib.auth.backends.ModelBackend` along with the OAuth2 backend
32+
(or you might not be able to log in into the admin), only pay attention to the order in which
33+
Django processes authentication backends.
3134

3235
If you put the OAuth2 backend *after* the AuthenticationMiddleware and `request.user` is valid,
3336
the backend will do nothing; if `request.user` is the Anonymous user it will try to authenticate

0 commit comments

Comments
 (0)