Share via


RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>.RequestAccessToken Method

Definition

Overloads

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.

RequestAccessToken()

Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs

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

public:
 virtual System::Threading::Tasks::ValueTask<Microsoft::AspNetCore::Components::WebAssembly::Authentication::AccessTokenResult ^> RequestAccessToken();
public virtual System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult> RequestAccessToken ();
abstract member RequestAccessToken : unit -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult>
override this.RequestAccessToken : unit -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult>
Public Overridable Function RequestAccessToken () As ValueTask(Of AccessTokenResult)

Returns

A ValueTask<TResult> that will contain the AccessTokenResult when completed.

Implements

Applies to

RequestAccessToken(AccessTokenRequestOptions)

Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs
Source:
RemoteAuthenticationService.cs

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

public:
 virtual System::Threading::Tasks::ValueTask<Microsoft::AspNetCore::Components::WebAssembly::Authentication::AccessTokenResult ^> RequestAccessToken(Microsoft::AspNetCore::Components::WebAssembly::Authentication::AccessTokenRequestOptions ^ options);
public virtual System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult> RequestAccessToken (Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenRequestOptions options);
abstract member RequestAccessToken : Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenRequestOptions -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult>
override this.RequestAccessToken : Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenRequestOptions -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Components.WebAssembly.Authentication.AccessTokenResult>
Public Overridable Function RequestAccessToken (options As AccessTokenRequestOptions) As ValueTask(Of AccessTokenResult)

Parameters

options
AccessTokenRequestOptions

The AccessTokenRequestOptions for provisioning the access token.

Returns

A ValueTask<TResult> that will contain the AccessTokenResult when completed.

Implements

Applies to