刷新令牌过期 [英] Refresh Token Expiration
问题描述
反正有没有办法弄清刷新令牌到期或客户端正在使用什么策略?
Is there anyway to figure out the refresh token expiration or what is policy being used by client?
推荐答案
在Azure AD发布后,访问令牌&刷新令牌,您可以在声明中找到JWT令牌的生存期.但是从ADAL 3.X版本开始,ADAL不会公开刷新令牌.每当您调用AcquireToken和请求的令牌时,它将自动使用它 需要更新.
After Azure AD issues the access token & refresh token, you can find the lifetime of JWT token in claims. But from ADAL 3.X version, ADAL doesn't expose the refresh token. It will automatically use it whenever you call AcquireToken and the requested token needs renewing.
默认情况下,刷新令牌会在14天后过期.您可以使用Azure AD Powershell命令创建和设置令牌生存期策略,如本文档中所示: https://docs.microsoft.com/zh-CN/azure/active-directory/active-directory-configurable-token-lifetimes
Refresh tokens expire in 14 days by default. You can create and set token lifetime policy using Azure AD Powershell Commands as shown in this document: https://docs.microsoft.com/en-us/azure/active-directory/active-directory-configurable-token-lifetimes
这篇关于刷新令牌过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!