Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
5cc306ae
Commit
5cc306ae
authored
May 12, 2016
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12440 from edx/clintonb/jwt-auth-updates
Updated usage of JWT authentication
parents
32c6c20b
e53d36b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
openedx/core/djangoapps/user_api/accounts/views.py
+2
-2
requirements/edx/base.txt
+2
-2
No files found.
openedx/core/djangoapps/user_api/accounts/views.py
View file @
5cc306ae
...
...
@@ -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
JSONWebToken
Authentication
from
edx_rest_framework_extensions.authentication
import
Jwt
Authentication
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
,
J
SONWebToken
Authentication
OAuth2AuthenticationAllowInactiveUser
,
SessionAuthenticationAllowInactiveUser
,
J
wt
Authentication
)
permission_classes
=
(
permissions
.
IsAuthenticated
,)
parser_classes
=
(
MergePatchParser
,)
...
...
requirements/edx/base.txt
View file @
5cc306ae
...
...
@@ -39,13 +39,13 @@ 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
edx-oauth2-provider==1.0.1
edx-opaque-keys==0.2.1
edx-organizations==0.4.
0
edx-organizations==0.4.
1
edx-rest-api-client==1.2.1
edx-search==0.1.2
facebook-sdk==0.4.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment