IAccessTokenProvider Interface

Definition

Represents a contract for services capable of provisioning access tokens for an application.

C#
public interface IAccessTokenProvider
Derived

Methods

RequestAccessToken()

Tries to get an access token for the current user with the default set of permissions.

RequestAccessToken(AccessTokenRequestOptions)

Tries to get an access token with the options specified in AccessTokenRequestOptions.

Applies to

Product Versions
ASP.NET Core 3.1, 5.0, 6.0, 7.0, 8.0, 9.0