-
Notifications
You must be signed in to change notification settings - Fork 61
Shift Tethys API Views from CSRF and Session to JSON Web Token (JWT) #1216
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
Conversation
…oken will return the access and refresh token of an authenticated user or null if noone is logged in in tethys, replace api views with django rest apis. removed csrf and session endpoints. updated whoami. added get_token
tethys_cli/scaffold_templates/app_templates/react/reactapp/services/api/tethys.js
Show resolved
Hide resolved
|
@swainn any concerns here about backwards capabilities? should i include something that still works with the old stuff and add a deprecation warning? |
Yes. Let's keep it backward compatible and add a deprecation warning. |
…ation if the "ALLOW_JWT_BASIC_AUTHENTICATION" is not True
|
this is ready for review again. Let me know if there is anything else that needs to change |
update this to it "will be deprecated and will be removed in a future tethys version" |
Description
This merge request updates the way that reactapps work with Tethys and authentication, namely shifting Tethys APIs from session and csrf based authentication to JSON Web Tokens (JWT).
Changes Made to Code
ReactApp Templates:
Tethys:
Related PRs, Issues, and Discussions
Additional Notes
Quality Checks