TokenCredential Class

Definition

Represents a credential capable of providing an OAuth token.

public abstract class TokenCredential
type TokenCredential = class
Public MustInherit Class TokenCredential
Inheritance
System.Object
TokenCredential
Derived

Constructors

TokenCredential()

Methods

GetToken(TokenRequestContext, CancellationToken)

Gets an AccessToken for the specified set of scopes.

GetTokenAsync(TokenRequestContext, CancellationToken)

Gets an AccessToken for the specified set of scopes.

Applies to