UserClaimsPrincipalFactory<TUser,TRole> Class
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.
Provides methods to create a claims principal for a given user.
generic <typename TUser, typename TRole>
where TUser : class where TRole : classpublic ref class UserClaimsPrincipalFactory : Microsoft::AspNetCore::Identity::IUserClaimsPrincipalFactory<TUser>
generic <typename TUser, typename TRole>
where TUser : class where TRole : classpublic ref class UserClaimsPrincipalFactory : Microsoft::AspNetCore::Identity::UserClaimsPrincipalFactory<TUser>
public class UserClaimsPrincipalFactory<TUser,TRole> : Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory<TUser> where TUser : class where TRole : class
public class UserClaimsPrincipalFactory<TUser,TRole> : Microsoft.AspNetCore.Identity.UserClaimsPrincipalFactory<TUser> where TUser : class where TRole : class
type UserClaimsPrincipalFactory<'User, 'Role (requires 'User : null and 'Role : null)> = class
interface IUserClaimsPrincipalFactory<'User (requires 'User : null)>
type UserClaimsPrincipalFactory<'User, 'Role (requires 'User : null and 'Role : null)> = class
inherit UserClaimsPrincipalFactory<'User (requires 'User : null)>
Public Class UserClaimsPrincipalFactory(Of TUser, TRole)
Implements IUserClaimsPrincipalFactory(Of TUser)
Public Class UserClaimsPrincipalFactory(Of TUser, TRole)
Inherits UserClaimsPrincipalFactory(Of TUser)
Type Parameters
- TUser
The type used to represent a user.
- TRole
The type used to represent a role.
- Inheritance
-
UserClaimsPrincipalFactory<TUser,TRole>
- Inheritance
- Implements
Constructors
UserClaimsPrincipalFactory<TUser,TRole>(UserManager<TUser>, RoleManager<TRole>, IOptions<IdentityOptions>) |
Initializes a new instance of the UserClaimsPrincipalFactory<TUser,TRole> class. |
UserClaimsPrincipalFactory<TUser,TRole>(UserManager<TUser>, RoleManager<TRole>, IOptions<IdentityOptions>) |
Initializes a new instance of the UserClaimsPrincipalFactory<TUser,TRole> class. |
Properties
Options |
Gets the IdentityOptions for this factory. |
Options |
Gets the IdentityOptions for this factory. (Inherited from UserClaimsPrincipalFactory<TUser>) |
RoleManager |
Gets the RoleManager<TRole> for this factory. |
UserManager |
Gets the UserManager<TUser> for this factory. |
UserManager |
Gets the UserManager<TUser> for this factory. (Inherited from UserClaimsPrincipalFactory<TUser>) |
Methods
CreateAsync(TUser) |
Creates a ClaimsPrincipal from an user asynchronously. |
CreateAsync(TUser) |
Creates a ClaimsPrincipal from an user asynchronously. (Inherited from UserClaimsPrincipalFactory<TUser>) |
GenerateClaimsAsync(TUser) |
Generate the claims for a user. |