Lingua

TokenCacheNotificationArgs.SuggestedCacheKey Proprietà

Definizione

Chiave della cache dei token suggerita, che può essere usata con meccanismi di archiviazione per utilizzo generico che consentono di archiviare coppie chiave-valore e recupero basato su chiave. Utile nelle applicazioni che archiviano una cache di token per utente, il modello consigliato per le app Web.

Il valore è:

  • homeAccountIdper AcquireTokenSilent, GetAccount(homeAccountId)RemoveAccount e quando si scrivono token nelle chiamate client riservate
  • "{clientId}__AppTokenCache" per AcquireTokenForClient
  • "{clientId}_{tenantId}_AppTokenCache" per AcquireTokenForClient quando si usa un'autorità specifica del tenant
  • hash del token originale per AcquireTokenOnBehalfOf
public string SuggestedCacheKey { get; }
member this.SuggestedCacheKey : string
Public ReadOnly Property SuggestedCacheKey As String

Valore della proprietà

Si applica a