AuthenticationTokenProvider.GetToken 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 a token from the auth provider.
public abstract System.ClientModel.Primitives.AuthenticationToken GetToken(System.ClientModel.Primitives.GetTokenOptions options, System.Threading.CancellationToken cancellationToken);
public abstract System.ClientModel.Primitives.AccessToken GetToken(System.ClientModel.Primitives.GetTokenOptions properties, System.Threading.CancellationToken cancellationToken);
abstract member GetToken : System.ClientModel.Primitives.GetTokenOptions * System.Threading.CancellationToken -> System.ClientModel.Primitives.AuthenticationToken
abstract member GetToken : System.ClientModel.Primitives.GetTokenOptions * System.Threading.CancellationToken -> System.ClientModel.Primitives.AccessToken
Public MustOverride Function GetToken (options As GetTokenOptions, cancellationToken As CancellationToken) As AuthenticationToken
Public MustOverride Function GetToken (properties As GetTokenOptions, cancellationToken As CancellationToken) As AccessToken
Parameters
- options
- GetTokenOptions
The options used by the AuthenticationTokenProvider to make a token request.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.