Interface IUser
Represents an user.
Inherited Members
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public interface IUser : IUserIdentifiers, IUniqueIdentifier, IHaveEmail, IEventAggregate
Properties
EmailConfirmed
Gets or sets a flag indicating if a user has confirmed their email address.
Declaration
bool EmailConfirmed { get; set; }
Property Value
Boolean
True if the email address has been confirmed, otherwise false. |
LastSignedIn
Gets or sets the date and time, in UTC, when the user last signed in.
Declaration
DateTime? LastSignedIn { get; set; }
Property Value
System.Nullable<System.DateTime>
|
Remarks
A missing value means the user has not signed in yet.
NormalizedUserName
Gets or sets the normalized user name for this user.
Declaration
string NormalizedUserName { get; set; }
Property Value
String
|
PhoneNumber
PhoneNumberConfirmed
Gets or sets a flag indicating if a user has confirmed their phone number.
Declaration
bool PhoneNumberConfirmed { get; set; }
Property Value
Boolean
True if the phone number has been confirmed, otherwise false. |
Methods
GetClaims(String)
Gets a collection of claims for this user.
Declaration
IEnumerable<Claim> GetClaims(string userNameClaimType = "preferred_username")
Parameters
String
userNameClaimType
The ClaimType used for the user name claim. |
Returns
IEnumerable<System.Security.Claims.Claim>
A collection of claims. |