你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
TokenCacheRefreshArgs.SuggestedCacheKey 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
建议的令牌缓存密钥,可与允许存储键值对和基于密钥的检索的常规用途存储机制结合使用。 适用于每个用户存储一个令牌缓存的应用程序,这是建议的 Web 应用模式。
值为:
homeAccountId
在机密客户端调用上编写令牌时,为AcquireTokenSilent
、GetAccount(homeAccountId)
RemoveAccount
和- 若
AcquireTokenForClient
,表示集"{clientId}__AppTokenCache"
"{clientId}_{tenantId}_AppTokenCache"
使用AcquireTokenForClient
租户特定颁发机构时的- 原始令牌的哈希
AcquireTokenOnBehalfOf
public string SuggestedCacheKey { get; }
member this.SuggestedCacheKey : string
Public ReadOnly Property SuggestedCacheKey As String