Eliminate full page reload when navigating to space selector after authenticating #59555
Labels
discuss
Feature:Security/Authentication
Platform Security - Authentication
Feature:Security/Spaces
Platform Security - Spaces feature
Team:Security
Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Currently, logging into Kibana is a multi-step process with Spaces enabled:
1a) Authenticate (assuming basic/token providers here)
Ultimately, we should eliminate as many of these full page loads as possible.
Until #59377 is resolved, we can't eliminate step
3
, as we require an updated set of UI Capabilities.This issue is focused on eliminating the full page load at step
2
, which we should be able to accomplish without #59377.We should render the space selector UI via client-side routing after authenticating, if (and only if) the user is authorized to access more than one space, and their
next
query parameter indicates that they would otherwise be navigating to the Kibana root.Doing this without a page reload means that the login page (and security in general) needs to be more aware of spaces. Spaces currently has its optional dependency on security declared, so we can't have security declare a dependency on spaces at this point.
I see a couple of paths forward, none of which are great. I'm open to all other ideas:
/internal/security/_get_next_location?next=...
The text was updated successfully, but these errors were encountered: