How to specify refresh tokens lifespan in Keycloak

rok picture rok · Aug 27, 2018 · Viewed 9.4k times · Source

Keycloak refresh token lifetime is 1800 seconds:

"refresh_expires_in": 1800

How to specify different default expiry time? In Keycloak admin ui, only access token lifespan can be specified:

enter image description here

Answer

Erik Tribou picture Erik Tribou · Feb 13, 2019

The refresh token lifetime is controlled by the SSO Session Idle Setting. 30 minutes = 30 * 60 = 1800 seconds (the refresh_expires_in value)