Table of Contents

Interface IIdentityUser<TKey>

Namespace
LinqToDB.Identity
Assembly
LinqToDB.Identity.dll

Represents a user in the identity system

public interface IIdentityUser<TKey> : IConcurrency<TKey> where TKey : IEquatable<TKey>

Type Parameters

TKey

The type used for the primary key for the user.

Inherited Members

Properties

AccessFailedCount

Gets or sets the number of failed login attempts for the current user.

int AccessFailedCount { get; set; }

Property Value

int

Email

Gets or sets the email address for this user.

string Email { get; set; }

Property Value

string

EmailConfirmed

Gets or sets a flag indicating if a user has confirmed their email address.

bool EmailConfirmed { get; set; }

Property Value

bool

True if the email address has been confirmed, otherwise false.

LockoutEnabled

Gets or sets a flag indicating if the user could be locked out.

bool LockoutEnabled { get; set; }

Property Value

bool

True if the user could be locked out, otherwise false.

LockoutEnd

Gets or sets the date and time, in UTC, when any user lockout ends.

DateTimeOffset? LockoutEnd { get; set; }

Property Value

DateTimeOffset?

Remarks

A value in the past means the user is not locked out.

NormalizedEmail

Gets or sets the normalized email address for this user.

string NormalizedEmail { get; set; }

Property Value

string

NormalizedUserName

Gets or sets the normalized user name for this user.

string NormalizedUserName { get; set; }

Property Value

string

PasswordHash

Gets or sets a salted and hashed representation of the password for this user.

string PasswordHash { get; set; }

Property Value

string

PhoneNumber

Gets or sets a telephone number for the user.

string PhoneNumber { get; set; }

Property Value

string

PhoneNumberConfirmed

Gets or sets a flag indicating if a user has confirmed their telephone address.

bool PhoneNumberConfirmed { get; set; }

Property Value

bool

True if the telephone number has been confirmed, otherwise false.

SecurityStamp

A random value that must change whenever a users credentials change (password changed, login removed)

string SecurityStamp { get; set; }

Property Value

string

TwoFactorEnabled

Gets or sets a flag indicating if two factor authentication is enabled for this user.

bool TwoFactorEnabled { get; set; }

Property Value

bool

True if 2fa is enabled, otherwise false.

UserName

Gets or sets the user name for this user.

string UserName { get; set; }

Property Value

string