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

token not refresh #13

Closed
Pettidjo opened this issue Apr 3, 2019 · 2 comments
Closed

token not refresh #13

Pettidjo opened this issue Apr 3, 2019 · 2 comments
Labels
awaiting_feedback question Further information is requested

Comments

@Pettidjo
Copy link

Pettidjo commented Apr 3, 2019

i'm trying to understand why my token is not refreshed.

i have configured SSO Session max to : 2 minute

in my console :

After 1 min, every ten second :
dsb-vue-keycloak.umd.js:464 [KEYCLOAK] Refreshing token: token expired
dsb-vue-keycloak.umd.js:491 [KEYCLOAK] Token refreshed
dsb-vue-keycloak.umd.js:840 [KEYCLOAK] Estimated time difference between browser and server is 0 seconds

At 2 min :
dsb-vue-keycloak.umd.js:516 POST http:*******
dsb-vue-keycloak.umd.js:501 [KEYCLOAK] Failed to refresh token
dsb-vue-keycloak.umd.js:1650 Error while trying to refresh the token

@anderius
Copy link
Contributor

anderius commented Apr 3, 2019

Is that not the desired behaviour?

From the Keycloak tooltip on "SSO session max" (which is default 10 hours):

Max time before a session is expired. Tokens and browser sessions are invalidated when a session is expired."

From my understanding, the refresh token is also invalidated.

@anderius anderius added question Further information is requested awaiting_feedback labels Apr 3, 2019
@Pettidjo
Copy link
Author

Pettidjo commented Apr 3, 2019

you are right, my bad!

i needed to change 'Access Token Lifespan', sorry for my misunderstanding.

@Pettidjo Pettidjo closed this as completed Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting_feedback question Further information is requested
Development

No branches or pull requests

2 participants