Replaced all usages of JSONWebTokenAuthentication with JwtAuthentication

JwtAuthentication knows how to parse our custom claims.

ECOM-4414
This commit is contained in:
Clinton Blackburn
2016-05-11 22:23:29 -04:00
parent f347e30b1b
commit 23e990df1d
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ For more information, see:
https://openedx.atlassian.net/wiki/display/TNL/User+API
"""
from django.db import transaction
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from edx_rest_framework_extensions.authentication import JwtAuthentication
from rest_framework import permissions
from rest_framework import status
from rest_framework.response import Response
@@ -141,7 +141,7 @@ class AccountView(APIView):
If the update is successful, updated user account data is returned.
"""
authentication_classes = (
OAuth2AuthenticationAllowInactiveUser, SessionAuthenticationAllowInactiveUser, JSONWebTokenAuthentication
OAuth2AuthenticationAllowInactiveUser, SessionAuthenticationAllowInactiveUser, JwtAuthentication
)
permission_classes = (permissions.IsAuthenticated,)
parser_classes = (MergePatchParser,)

View File

@@ -39,7 +39,7 @@ django==1.8.13
djangorestframework-jwt==1.8.0
djangorestframework-oauth==1.1.0
edx-ccx-keys==0.1.2
edx-drf-extensions==0.5.0
edx-drf-extensions==0.5.1
edx-lint==0.4.3
edx-management-commands==0.1.1
edx-django-oauth2-provider==1.0.3