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

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

问题描述

Keycloak 刷新令牌生命周期为 1800 秒:

Keycloak refresh token lifetime is 1800 seconds:

refresh_expires_in":1800

"refresh_expires_in": 1800

如何指定不同的过期时间?在 Keycloak 管理 UI 中,只能指定访问令牌寿命:

How to specify different expiration 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天全站免登陆