RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>.RequestAccessToken Metodo

Definizione

Overload

RequestAccessToken()

Tenta di ottenere un token di accesso per l'utente corrente con il set predefinito di autorizzazioni.

RequestAccessToken(AccessTokenRequestOptions)

Prova a ottenere un token di accesso con le opzioni specificate in AccessTokenRequestOptions.

RequestAccessToken()

Origine:
RemoteAuthenticationService.cs
Origine:
RemoteAuthenticationService.cs
Origine:
RemoteAuthenticationService.cs
Origine:
RemoteAuthenticationService.cs
Origine:
RemoteAuthenticationService.cs
Origine:
RemoteAuthenticationService.cs

Tenta di ottenere un token di accesso per l'utente corrente con il set predefinito di autorizzazioni.

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)

Restituisce

Oggetto ValueTask<TResult> che conterrà l'oggetto AccessTokenResult al termine.

Implementazioni

Si applica a

RequestAccessToken(AccessTokenRequestOptions)

Origine:
RemoteAuthenticationService.cs
Origine:
RemoteAuthenticationService.cs
Origine:
RemoteAuthenticationService.cs
Origine:
RemoteAuthenticationService.cs
Origine:
RemoteAuthenticationService.cs
Origine:
RemoteAuthenticationService.cs

Prova a ottenere un token di accesso con le opzioni specificate 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)

Parametri

options
AccessTokenRequestOptions

Oggetto AccessTokenRequestOptions per il provisioning del token di accesso.

Restituisce

Oggetto ValueTask<TResult> che conterrà l'oggetto AccessTokenResult al termine.

Implementazioni

Si applica a