IAccessTokenProvider.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()
- Source:
- IAccessTokenProvider.cs
- Source:
- IAccessTokenProvider.cs
- Source:
- IAccessTokenProvider.cs
- Source:
- IAccessTokenProvider.cs
Tries to get an access token for the current user with the default set of permissions.
public:
System::Threading::Tasks::ValueTask<Microsoft::AspNetCore::Components::WebAssembly::Authentication::AccessTokenResult ^> RequestAccessToken();
public 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>
Public Function RequestAccessToken () As ValueTask(Of AccessTokenResult)
Returns
A ValueTask<TResult> that will contain the AccessTokenResult when completed.
Applies to
RequestAccessToken(AccessTokenRequestOptions)
- Source:
- IAccessTokenProvider.cs
- Source:
- IAccessTokenProvider.cs
- Source:
- IAccessTokenProvider.cs
- Source:
- IAccessTokenProvider.cs
Tries to get an access token with the options specified in AccessTokenRequestOptions.
public:
System::Threading::Tasks::ValueTask<Microsoft::AspNetCore::Components::WebAssembly::Authentication::AccessTokenResult ^> RequestAccessToken(Microsoft::AspNetCore::Components::WebAssembly::Authentication::AccessTokenRequestOptions ^ options);
public 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>
Public 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.