UserClaimsPrincipalFactory<TUser>.GenerateClaimsAsync(TUser) Method

Definition

Generate the claims for a user.

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

Parameters

user
TUser

The user to create a ClaimsIdentity from.

Returns

Task<ClaimsIdentity>

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

Applies to