Skip to content

Access/Refresh token times when using OIDC authentication and Keycloak #6800

Closed Answered by davideshay
davideshay asked this question in Q&A
Discussion options

You must be logged in to vote

Figured it out. Guess I'll leave this links here for prosperity if anyone else has the same questions:

https://stackoverflow.com/questions/38114832/keycloak-can-i-set-the-expiry-of-a-token-per-client-user-role

https://stackoverflow.com/questions/52040265/how-to-specify-refresh-tokens-lifespan-in-keycloak/67624190#67624190

Ultimately, I ended up setting the realm setting SSO Session Idle and Session Max to 7 days, and the client Access Token Lifespan to 2 hours. It seems to be working correctly now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davideshay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant