Udostępnij za pośrednictwem


AccountClaimsPrincipalFactory<TAccount>.CreateUserAsync Metoda

Definicja

Konwertuje element account na ostatni ClaimsPrincipalelement .

public:
 virtual System::Threading::Tasks::ValueTask<System::Security::Claims::ClaimsPrincipal ^> CreateUserAsync(TAccount account, Microsoft::AspNetCore::Components::WebAssembly::Authentication::RemoteAuthenticationUserOptions ^ options);
public virtual System.Threading.Tasks.ValueTask<System.Security.Claims.ClaimsPrincipal> CreateUserAsync (TAccount account, Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationUserOptions options);
abstract member CreateUserAsync : 'Account * Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationUserOptions -> System.Threading.Tasks.ValueTask<System.Security.Claims.ClaimsPrincipal>
override this.CreateUserAsync : 'Account * Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationUserOptions -> System.Threading.Tasks.ValueTask<System.Security.Claims.ClaimsPrincipal>
Public Overridable Function CreateUserAsync (account As TAccount, options As RemoteAuthenticationUserOptions) As ValueTask(Of ClaimsPrincipal)

Parametry

account
TAccount

Konto.

options
RemoteAuthenticationUserOptions

Element RemoteAuthenticationUserOptions do skonfigurowania za ClaimsPrincipal pomocą polecenia .

Zwraca

Element ValueTask<TResult>, który będzie zawierać użytkownika po zakończeniu ClaimsPrincipal .

Dotyczy