Skip to content

Auto login UI #2123

@filipslezaklab

Description

@filipslezaklab

Due to how many initial redirects and checks are done right now, it is not clear what to do on app init to correct the url from the auth standpoint. Right now there is one broken path, login when cookie is active but session store is null.

Cases to consider:

  • Login basic
  • Login but MFA
  • Login external oidc / MFA
  • OpenID needs permission AND OR LOGIN / MFA
  • OpenID Login / MFA
  • Wizard
  • Wizard but needs login ( someone did not finish the wizard process but already made an account ? )

Proposition:
Introduce endpoint that will clarify the current state of the active session that is only describing current session information. This will be used only when UI is initialized before router is built in order to have cached sync state to build proper and simpler guards on the routes that need them. Current guards do many and complicated async tasks in order to figure out what to do and that's what leads to unintended behaviour with redirects and also slows down paint time.

Sub-issues

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions