<PackageReference Include="System.ClientModel" Version="1.7.0" />

AuthenticationTokenProvider

public abstract class AuthenticationTokenProvider
The base class for all AuthenticationTokenProvider implementations.

public abstract GetTokenOptions CreateTokenOptions(IReadOnlyDictionary<string, object> properties)

Creates a new instance of GetTokenOptions using the provided properties.

public abstract AuthenticationToken GetToken(GetTokenOptions options, CancellationToken cancellationToken)

Gets a token from the auth provider.

public abstract ValueTask<AuthenticationToken> GetTokenAsync(GetTokenOptions options, CancellationToken cancellationToken)

Gets the token.