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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET