Share via


UserClaimsPrincipalFactory<TUser,TRole>.GenerateClaimsAsync Method

Definition

Generate the claims for a user.

protected:
 override System::Threading::Tasks::Task<System::Security::Claims::ClaimsIdentity ^> ^ GenerateClaimsAsync(TUser user);
protected override System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> GenerateClaimsAsync (TUser user);
override this.GenerateClaimsAsync : 'User -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Protected Overrides Function GenerateClaimsAsync (user As TUser) As Task(Of ClaimsIdentity)

Parameters

user
TUser

The user to create a ClaimsIdentity from.

Returns

The Task that represents the asynchronous creation operation, containing the created ClaimsIdentity.

Applies to