-
Notifications
You must be signed in to change notification settings - Fork 99
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
Old Version of Keycloak-JS potentially causes infinite reloading #99
Comments
Is it not possible to force the installation of the latest version of keycloak-js? Could be a try. |
So after further testing:
Would be glad if anyone has any ideas :) |
Okay, I found the cause for the issue: As I was hosting both services on localhost, I always got a CORS error. Would love to see better error handling for such edge cases :) Leaving this open for the Maintainers to decide and close |
I can confirm @BloodWorkXGaming workaround is indeed working:
|
As mentioned on previous issues we are currently sticking to version 9.0.3 because of redhat-sso being behind keycloak. And we are not using keycloak. In regards to better error handling, i've been trying to catch common errors. However most of them are not exposed by keycloak-js plugin. Like the CORS error is coming from the iframe which does not return errors to "us". |
@baltom latest Red Hat SSO v7.5 uses Keycloak 15 (see https://access.redhat.com/articles/2342881 ) - would you mind reconsidering the decision to not upgrade the keycloak-js adapter dependency ? Maybe by releasing a new major version v3 (so Keycloak 9 users can stick to v2)? I'm happy to provide PRs if help is needed. |
Update keycloak-js dependency merged and published in version 2.1.0-beta |
I am facing the problem of infinit reloading about every 5 seconds.
As I found in this post, it could be caused by a difference in the version of keycloak vs keycloak-js:
https://stackoverflow.com/questions/55606931/keycloak-js-library-iframe-redirect-when-alreadylogged-in
This library seems to be using version 9 while the version 15 is already out.
Is it possible to update it? Or is the refresh loop caused by something else?
The text was updated successfully, but these errors were encountered: