<PackageReference Include="Azure.Core" Version="1.53.0" />

Azure.Core.TokenCredential

Represents a credential capable of providing an OAuth token.
protected TokenCredential()

public abstract AccessToken GetToken(TokenRequestContext requestContext, CancellationToken cancellationToken)

Gets an AccessToken for the specified set of scopes.

public abstract ValueTask<AccessToken> GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)

Gets an AccessToken for the specified set of scopes.