-
Notifications
You must be signed in to change notification settings - Fork 0
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
Log in workflow improvements #89
Comments
May need to look at how the Keycloak JS client is working - and how this impacts on the initialisation of the client code. Might be a race condition of some sort. |
We have yet to reliably replicate the issue though it has definitely been observed before, mainly in Firefox? I'd like to ask what browsers (name, version, operating system) the user is using because it may be a browser-specific issue. My current (not completely substantiated) guess is around |
Have encountered it once since last update; not able to replicate it reliably. Have heard of reports of it happening not only in Firefox, but Chrome too, so might not be browser-bug related but maybe network/race conditions? |
Found one reliable way to recreate it - logging in with old/missing state. The Keycloak server then (after sign in) redirects the user to the application but does not supply all three of the following:
... which is required to initialise the session state in the Javascript adapter. Because of this, it thinks it's not actually authenticated. There's a second part - As to how we can actually capture this and respond accordingly - the Keycloak JS library is terrible and doesn't surface this to the public API - all we get is a boolean reflecting whether we're authenticated or not. We could try and interrogate local storage for this, but it'll be hard to determine when to do this (as it only should exist between creating login URL -> going to auth URL -> returning to app -> app reading and subsequently deleting the entry in local storage). How did I even figure this out? The main website currently has a link to "sign in" which points to the following URL:
I suppose some people might bookmark this and constantly get the situation we're facing at the moment. I'm not sure if my discovery answers everything because I normally log in via the app normally and sometimes get this as well, but I haven't been able to reliably replicate that... |
Note from user below:
"Hi ecocloud. When I attempted to login using both AAF and Google I got sent to the "You are not signed in" page. I then clicked the sign in link in the message Please sign in to continue option and was successfully logged in.
As I'm signed in is it possible to remove this page from the sign-in flow, or provide a better message for users who are actually signed in.
Thanks,
Terry."
The text was updated successfully, but these errors were encountered: