ApplicationTokenProvider.GetAuthenticationHeaderAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an access token from the token cache or from AD authentication endpoint. Attempts to refresh the access token if it has expired.
public virtual System.Threading.Tasks.Task<System.Net.Http.Headers.AuthenticationHeaderValue> GetAuthenticationHeaderAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetAuthenticationHeaderAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.Headers.AuthenticationHeaderValue>
override this.GetAuthenticationHeaderAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.Headers.AuthenticationHeaderValue>
Public Overridable Function GetAuthenticationHeaderAsync (cancellationToken As CancellationToken) As Task(Of AuthenticationHeaderValue)
Parameters
- cancellationToken
- CancellationToken
Returns
Implements
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.