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#56786legrego merged 8 commits intoelastic:masterfrom
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
|
@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 <elasticmachine@users.noreply.github.com>
* 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 <elasticmachine@users.noreply.github.com> * fix merge conflict Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
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}/loginResolves #56695