Skip to content

Commit

Permalink
Add JWT Auth Middleware.
Browse files Browse the repository at this point in the history
From edx-drf-extensions:
1. EnsureJWTAuthSettingsMiddleware: Ensures proper JWT auth settings
   for endpoints.
2. JwtAuthCookieMiddleware: Combines the JWT auth cookie parts into a
   JWT auth cookie.

ARCH-233
  • Loading branch information
robrap committed Oct 3, 2018
1 parent b411302 commit 29f7b7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions notesserver/settings/common.py
Expand Up @@ -43,6 +43,8 @@
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'edx_rest_framework_extensions.middleware.RequestMetricsMiddleware',
'edx_rest_framework_extensions.auth.jwt.middleware.EnsureJWTAuthSettingsMiddleware',
'edx_rest_framework_extensions.auth.jwt.middleware.JwtAuthCookieMiddleware',
)

INSTALLED_APPS = [
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Expand Up @@ -13,4 +13,4 @@ python-dateutil==2.4.0
newrelic==2.40.0.34 # New Relic
edx-django-release-util==0.3.1
edx-django-utils==1.0.1
edx-drf-extensions==1.6.1
edx-drf-extensions==1.10.0.1

0 comments on commit 29f7b7e

Please sign in to comment.