We have a site that only works for authenticated users. That is, when an unautenticated user arrives, she should immediatly be redirected to the STS (IdentityServcer).
Current flow for an unauthenticated user:
- User navigates to app
- App downloads, then boots (takes a few seconds)
- App detects that user is not logged in
- App redirects to STS
- User login, and redirect back to app
- App boots again (a few more seconds)
Question is: How could we detact that the user is not logged in before the app boots, and thus prevent the first boot time?
We’re using the aurelia-open-id-connect to help us manage the oidc flow.