-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update all edx-platform REST endpoints to support JWT Auth #34152
Update all edx-platform REST endpoints to support JWT Auth #34152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All seems good only following point
Any reason we are not removing them from the following endpoints?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This loos great, thanks @salman2013!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saw more things after the review. One quick fix and then this should be good to merge.
@@ -1146,6 +1146,7 @@ class ReplaceUsernamesView(APIView): | |||
|
|||
""" | |||
|
|||
authentication_classes = (JwtAuthentication,) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salman2013 why was this added back in? It looks like there was a mismatch of response codes for a test. 403 vs 401. I think the more correct thing to do is to update the test in this case. We saw this issue here as well.
@feanil I have fixed the above mention things, i believe its good to merge now. thanks |
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
2U Release Notice: This PR has been deployed to the edX production environment. |
Description: The default DRF Auth classes were recently updated to allow for both JWT and Session auth by default. Any endpoint that overrides the AUTHENTICATION_CLASSES but has just session, just JWT or just both of those should be updated to remove the override.
Ticket: https://github.com/orgs/openedx/projects/55/views/1?pane=issue&itemId=39035029