在身份验证上滑动到期 [英] Sliding expiration on Authentication

查看:66
本文介绍了在身份验证上滑动到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试设置滑动到期时间。但滑动时间并没有增加。令牌过期而没有滑动时间

We are trying to set the sliding expiration. But the sliding time is not increasing. Token gets expired without sliding time

推荐答案

如果您尝试在应用程序中设置滑动过期,并且应用程序与Azure AD联合并使用Azure AD作为身份提供商然后这将无法工作,因为Azure AD提供的令牌将是由身份提供商设置的明确期限
,因此将在客户端设置auth cookie。如果Azure AD提供的JWT toke设置为在特定时间戳到期,则它将过期,用户必须重新进行身份验证。 
If you are trying to set the sliding expiration within your application , and the application is federated with Azure AD and uses Azure AD as a identity provider then this will not work because the token provided by Azure AD will be of a definite period as set by the Identity provider and accordingly a auth cookie will be set on the client side. If the JWT toke provided by Azure AD is set to expire at a particular timestamp , it will expire and the user would have to re-authenticate. 


这篇关于在身份验证上滑动到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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