AccountClaimsPrincipalFactory<TAccount>.CreateUserAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 account
转换为最终 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)
参数
- account
- TAccount
帐户。
返回
完成 ValueTask<TResult>时将包含用户的 ClaimsPrincipal 。