UserClaimsPrincipalFactory<TUser>.GenerateClaimsAsync(TUser) 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:
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
The Task that represents the asynchronous creation operation, containing the created ClaimsIdentity.