Udostępnij za pośrednictwem


TokenCacheNotificationArgs.SuggestedCacheKey Property

Definition

A suggested token cache key, which can be used with general purpose storage mechanisms that allow storing key-value pairs and key based retrieval. Useful in applications that store one token cache per user, the recommended pattern for web apps.

The value is:

  • homeAccountId for AcquireTokenSilent, GetAccount(homeAccountId), RemoveAccount and when writing tokens on confidential client calls
  • "{clientId}__AppTokenCache" for AcquireTokenForClient
  • "{clientId}_{tenantId}_AppTokenCache" for AcquireTokenForClient when using a tenant specific authority
  • the hash of the original token for AcquireTokenOnBehalfOf
public string SuggestedCacheKey { get; }
member this.SuggestedCacheKey : string
Public ReadOnly Property SuggestedCacheKey As String

Property Value

Applies to