Skip to content
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

Keycloak token is not being refreshed when it expires #175

Open
denkv opened this issue Dec 1, 2017 · 1 comment
Open

Keycloak token is not being refreshed when it expires #175

denkv opened this issue Dec 1, 2017 · 1 comment

Comments

@denkv
Copy link
Collaborator

denkv commented Dec 1, 2017

Interface just displays never-ending loading bar at the top when this happens.

[KEYCLOAK] Refreshing token: token expired
vendor.0c6301adc163630ba4a8.bundle.js:1:1046865
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8181/auth/realms/Hobbit/protocol/openid-connect/token. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
[KEYCLOAK] Failed to refresh token
vendor.0c6301adc163630ba4a8.bundle.js:1:1047704
ERROR Failed to refresh token
vendor.0c6301adc163630ba4a8.bundle.js:1:26324
@MichaelRoeder
Copy link
Contributor

I think this is related to issues that we already had. Keycloak uses two tokens - one short term token that is given to the GUI client and a token with a longer lifetime that exists inside Keycloak. If the second token times out, it is possible that Keycloak can not refresh it. We decided to increase the token life time for this token but maybe we missed to do this for the"default" keycloak DB as well? If this is the case, solving this problem could be combined with #162

@MichaelRoeder MichaelRoeder changed the title Keycloak token is not begin refreshed when it expires Keycloak token is not being refreshed when it expires Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants