Share via


IdentityErrorDescriber Class

Definition

Service to enable localization for application facing identity errors.

public ref class IdentityErrorDescriber
public class IdentityErrorDescriber
type IdentityErrorDescriber = class
Public Class IdentityErrorDescriber
Inheritance
IdentityErrorDescriber

Remarks

These errors are returned to controllers and are generally used as display messages to end users.

Constructors

IdentityErrorDescriber()

Methods

ConcurrencyFailure()

Returns an IdentityError indicating a concurrency failure.

DefaultError()

Returns the default IdentityError.

DuplicateEmail(String)

Returns an IdentityError indicating the specified email is already associated with an account.

DuplicateRoleName(String)

Returns an IdentityError indicating the specified role name already exists.

DuplicateUserName(String)

Returns an IdentityError indicating the specified userName already exists.

InvalidEmail(String)

Returns an IdentityError indicating the specified email is invalid.

InvalidRoleName(String)

Returns an IdentityError indicating the specified role name is invalid.

InvalidToken()

Returns an IdentityError indicating an invalid token.

InvalidUserName(String)

Returns an IdentityError indicating the specified user userName is invalid.

LoginAlreadyAssociated()

Returns an IdentityError indicating an external login is already associated with an account.

PasswordMismatch()

Returns an IdentityError indicating a password mismatch.

PasswordRequiresDigit()

Returns an IdentityError indicating a password entered does not contain a numeric character, which is required by the password policy.

PasswordRequiresLower()

Returns an IdentityError indicating a password entered does not contain a lower case letter, which is required by the password policy.

PasswordRequiresNonAlphanumeric()

Returns an IdentityError indicating a password entered does not contain a non-alphanumeric character, which is required by the password policy.

PasswordRequiresUniqueChars(Int32)

Returns an IdentityError indicating a password does not meet the minimum number uniqueChars of unique chars.

PasswordRequiresUpper()

Returns an IdentityError indicating a password entered does not contain an upper case letter, which is required by the password policy.

PasswordTooShort(Int32)

Returns an IdentityError indicating a password of the specified length does not meet the minimum length requirements.

RecoveryCodeRedemptionFailed()

Returns an IdentityError indicating a recovery code was not redeemed.

UserAlreadyHasPassword()

Returns an IdentityError indicating a user already has a password.

UserAlreadyInRole(String)

Returns an IdentityError indicating a user is already in the specified role.

UserLockoutNotEnabled()

Returns an IdentityError indicating user lockout is not enabled.

UserNotInRole(String)

Returns an IdentityError indicating a user is not in the specified role.

Applies to