你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TokenCacheRefreshArgs.SuggestedCacheKey 属性

定义

建议的令牌缓存密钥,可与允许存储键值对和基于密钥的检索的常规用途存储机制结合使用。 适用于每个用户存储一个令牌缓存的应用程序,这是建议的 Web 应用模式。

值为:

  • homeAccountId在机密客户端调用上编写令牌时,为 AcquireTokenSilentGetAccount(homeAccountId)RemoveAccount
  • AcquireTokenForClient,表示集 "{clientId}__AppTokenCache"
  • "{clientId}_{tenantId}_AppTokenCache" 使用 AcquireTokenForClient 租户特定颁发机构时的
  • 原始令牌的哈希 AcquireTokenOnBehalfOf
public string SuggestedCacheKey { get; }
member this.SuggestedCacheKey : string
Public ReadOnly Property SuggestedCacheKey As String

属性值

适用于