-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Enable customizing login/logout responses #296
Enable customizing login/logout responses #296
Conversation
This looks very reasonable to me 👍 |
@c-w Thanks for the contribution! 😁 I'll be reviewing these changes in the next week or so. CC @AdamDonna |
This LGTM as well, maybe worth adding to the documentation though. |
Where would you like me to document this @johnraz ? |
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, changes look good and there's some interest in this being merged.
I think this is almost good to merge, but I agree with @johnraz that it needs some documentation. If you add those docs in, I'll make sure to review and move this along. 😁
I added the docs in 43d983d. PTAL @giovannicimolin |
Codecov Report
@@ Coverage Diff @@
## develop #296 +/- ##
==========================================
Coverage ? 91.70%
==========================================
Files ? 9
Lines ? 229
Branches ? 35
==========================================
Hits ? 210
Misses ? 16
Partials ? 3 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
👍 CI checks are green, we're good to go. |
Enable customizing login/logout responses
This pull request is a small change to enable customizing the response shape for the login and logout views by overriding a simple method.
This is useful in situations where for example the 204 responses in the logout views are undesirable (e.g. for clients that always assume that responses have a JSON body).