RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>.RequestAccessToken Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()
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)
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.