Skip to content

Commit

Permalink
Merge pull request openedx#19055 from edx/robrap/ARCH-233-jwt-auth-mi…
Browse files Browse the repository at this point in the history
…ddleware

ARCH-233: Add JWT Auth Middleware.
  • Loading branch information
robrap authored Oct 4, 2018
2 parents b6f223e + 3e3c133 commit 79b2992
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@
# Outputs monitoring metrics for a request.
'edx_rest_framework_extensions.middleware.RequestMetricsMiddleware',

'edx_rest_framework_extensions.middleware.EnsureJWTAuthSettingsMiddleware',
'edx_rest_framework_extensions.auth.jwt.middleware.EnsureJWTAuthSettingsMiddleware',
'edx_rest_framework_extensions.auth.jwt.middleware.JwtAuthCookieMiddleware',

# This must be last so that it runs first in the process_response chain
'openedx.core.djangoapps.site_configuration.middleware.SessionCookieDomainOverrideMiddleware',
Expand Down
3 changes: 2 additions & 1 deletion lms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,8 @@ def _make_locale_paths(settings):
# Outputs monitoring metrics for a request.
'edx_rest_framework_extensions.middleware.RequestMetricsMiddleware',

'edx_rest_framework_extensions.middleware.EnsureJWTAuthSettingsMiddleware',
'edx_rest_framework_extensions.auth.jwt.middleware.EnsureJWTAuthSettingsMiddleware',
'edx_rest_framework_extensions.auth.jwt.middleware.JwtAuthCookieMiddleware',

# This must be last
'openedx.core.djangoapps.site_configuration.middleware.SessionCookieDomainOverrideMiddleware',
Expand Down

0 comments on commit 79b2992

Please sign in to comment.