Freigeben über


RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>.RequestAccessToken Methode

Definition

Überlädt

RequestAccessToken()

Versucht, ein Zugriffstoken für den aktuellen Benutzer mit dem Standardberechtigungssatz abzurufen.

RequestAccessToken(AccessTokenRequestOptions)

Versucht, ein Zugriffstoken mit den in AccessTokenRequestOptionsangegebenen Optionen abzurufen.

RequestAccessToken()

Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs

Versucht, ein Zugriffstoken für den aktuellen Benutzer mit dem Standardberechtigungssatz abzurufen.

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)

Gibt zurück

Ein ValueTask<TResult> , das den AccessTokenResult enthält, wenn er abgeschlossen ist.

Implementiert

Gilt für:

RequestAccessToken(AccessTokenRequestOptions)

Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs
Quelle:
RemoteAuthenticationService.cs

Versucht, ein Zugriffstoken mit den in AccessTokenRequestOptionsangegebenen Optionen abzurufen.

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)

Parameter

options
AccessTokenRequestOptions

Der AccessTokenRequestOptions für die Bereitstellung des Zugriffstokens.

Gibt zurück

Ein ValueTask<TResult> , das den AccessTokenResult enthält, wenn er abgeschlossen ist.

Implementiert

Gilt für: