Skip to content

Commit 60f956f

Browse files
committed
specify middleware order, fixes #152
1 parent d2cde74 commit 60f956f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/tutorial/tutorial_03.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ which takes care of token verification. In your settings.py:
2424
2525
MIDDLEWARE_CLASSES = (
2626
'...',
27+
# be sure following two appear in this order
28+
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
2729
'oauth2_provider.middleware.OAuth2TokenMiddleware',
2830
'...',
2931
)

0 commit comments

Comments
 (0)