UserTokenProvider.GetAuthenticationHeaderAsync(CancellationToken) 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. Will attempt 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET