-
Notifications
You must be signed in to change notification settings - Fork 143
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
Add session-based auth REST API endpoints for login, logout #11261 #11284
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.
This looks good, just 2 things to talk about:
-
Is there a chance to DRY up
views/auth.py
? Or is there enough difference between the interaction that keeping the difference would be prudent? -
I imagine this is a larger conversation, but is Arches eventually going to use DRF? If so this may be a good opportunity to get our foot in the door.
Good Q.
|
Allows creating api submodules without disturbing existing imports.
7b65707
to
7132231
Compare
Yeah, almost every line of that other view deals with redirects and template renders. Even the ratelimit decorator can't be shared, b/c we're doing some gymnastics to double the limit to account for the fact that our auth form requires two clicks to submit. |
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.
lgtm! 👍
Types of changes
Description of Change
To support arches applications that do not use the Arches login page interface, create REST API endpoints for login and logout. See extended discussion below.
Issues Solved
Closes #11261
Checklist
Ticket Background
Further comments
Testing instructions