AccountClaimsPrincipalFactory<TAccount>.CreateUserAsync 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.
Converts the account
into the final ClaimsPrincipal.
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)
Parameters
- account
- TAccount
The account.
- options
- RemoteAuthenticationUserOptions
The RemoteAuthenticationUserOptions to configure the ClaimsPrincipal with.
Returns
A ValueTask<TResult>that will contain the ClaimsPrincipal user when completed.