-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Logout should redirect to the login screen at the server base path #56786
Logout should redirect to the login screen at the server base path #56786
Conversation
@elasticmachine merge upstream |
Pinging @elastic/kibana-security (Team:Security) |
ACK: reviewing now... |
Okay, I determined a problem with this PR, and I also discovered two more bugs. I believe we should be accounting for two flows:
This PR fixes behavior for the former, but breaks behavior for the latter. Both of these flows currently function by redirecting the user to the "/logout" endpoint. So perhaps we need a flag on that route to determine whether to preserve the current space in the URL or not. Aside from that:
I'll open issues for these and investigate. Edit: I linked the issues above. |
Thanks for reviewing and testing!
I was originally going to fix the front-end "Logout" link, by making sure it always pointed to
Yikes. I'm surprised we don't have tests for at least the |
Good idea!
Yeah... if we do have them they might be broken, or if we don't, they need to be added 😛 |
… path" This reverts commit c80716b.
…es-logout-redirect
…kibana into security/spaces-logout-redirect
Flaky test result not related to this PR:
|
…es-logout-redirect
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!
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…ic#56786) * logout should redirect to the login screen at the server base path * Revert "logout should redirect to the login screen at the server base path" This reverts commit c80716b. * fix logout url in nav control service Co-authored-by: Elastic Machine <[email protected]>
* Logout should redirect to the login screen at the server base… (#56786) * logout should redirect to the login screen at the server base path * Revert "logout should redirect to the login screen at the server base path" This reverts commit c80716b. * fix logout url in nav control service Co-authored-by: Elastic Machine <[email protected]> * fix merge conflict Co-authored-by: Elastic Machine <[email protected]>
Summary
When logging out, the redirection to the login screen should always be at the root of the server's base path.
This fixes the scenario when logging out of any non-Default space would cause the login screen to be rendered at
${serverBasePath}/s/${spaceId}/login
, instead of${serverBasePath}/login
Resolves #56695