如何在Keycloak中指定刷新令牌的寿命 [英] How to specify refresh tokens lifespan in Keycloak

查看:660
本文介绍了如何在Keycloak中指定刷新令牌的寿命的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Keycloak刷新令牌的生存时间为1800秒:

Keycloak refresh token lifetime is 1800 seconds:

"refresh_expires_in":1800

"refresh_expires_in": 1800

如何指定不同的默认到期时间? 在Keycloak管理员ui中,只能指定访问令牌的寿命:

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

推荐答案

刷新令牌的生存期由SSO会话空闲设置控制. 30分钟= 30 * 60 = 1800秒(refresh_expires_in值)

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

这篇关于如何在Keycloak中指定刷新令牌的寿命的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆