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 ? |
giovannicimolin
left a comment
There was a problem hiding this comment.
👍
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).