UserClaimsPrincipalFactory<TUser,TRole>.GenerateClaimsAsync 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.
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.