CAS中的OpenID Connect令牌到期的配置
我正在寻找设置OpenID连接令牌的到期时间的属性。默认值为8小时,但我想更改它。我该怎么做?
我正在使用CAS 6.5.4
I'm looking for properties to set expiration time of OpenId Connect token. Default is 8 hours, but I want to change it. How can I do that?
I'm using CAS 6.5.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
令牌到期政策与您在CAS 6.5.x中的SSO会话策略相同。更改使用2个小时的默认值是,即,
cas.ticket.tgt.tgt.primary.max time time-time to-live-in-seconds = 7200
。这将使ID令牌持续2个小时,而您的SSO会话也将持续2个小时。Token expiration policy is the same as your SSO session policy in CAS 6.5.x. To change the default to use 2 hours would be, i.e.,
cas.ticket.tgt.primary.max-time-to-live-in-seconds=7200
. This will make the ID token last for 2 hours, and your SSO session would also last for 2 hours.