刷新令牌过期
反正有没有办法弄清刷新令牌到期或客户端正在使用什么策略?
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