How to specify refresh tokens lifespan in Keycloak

后端 未结 2 1853
没有蜡笔的小新
没有蜡笔的小新 2021-02-07 06:19

Keycloak refresh token lifetime is 1800 seconds:

\"refresh_expires_in\": 1800

How to specify different default expiry time? In Keyc

相关标签:
2条回答
  • 2021-02-07 06:55

    In v11.0.3, under the advanced settings for the client, there are no SSO Session Idle settings (not sure if these have just been renamed, moved, or are a realm setting available elsewhere in the admin interface), so starting with default client settings, you can specify Client Session Max to control refresh token lifetime without needing to change the other duration settings (Access Token Lifetime continues as you would expect). Evidence: adjusting settings and checking refresh_expires in response.

    0 讨论(0)
  • 2021-02-07 07:06

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

    0 讨论(0)
提交回复
热议问题