IdentityErrorDescriber IdentityErrorDescriber IdentityErrorDescriber Class

Definition

Service to enable localization for application facing identity errors.

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

Remarks

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

Constructors

IdentityErrorDescriber() IdentityErrorDescriber() IdentityErrorDescriber()

Methods

ConcurrencyFailure() ConcurrencyFailure() ConcurrencyFailure()

Returns an IdentityError indicating a concurrency failure.

DefaultError() DefaultError() DefaultError()

Returns the default IdentityError.

DuplicateEmail(String) DuplicateEmail(String) DuplicateEmail(String)

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

DuplicateRoleName(String) DuplicateRoleName(String) DuplicateRoleName(String)

Returns an IdentityError indicating the specified role name already exists.

DuplicateUserName(String) DuplicateUserName(String) DuplicateUserName(String)

Returns an IdentityError indicating the specified userName already exists.

InvalidEmail(String) InvalidEmail(String) InvalidEmail(String)

Returns an IdentityError indicating the specified email is invalid.

InvalidRoleName(String) InvalidRoleName(String) InvalidRoleName(String)

Returns an IdentityError indicating the specified role name is invalid.

InvalidToken() InvalidToken() InvalidToken()

Returns an IdentityError indicating an invalid token.

InvalidUserName(String) InvalidUserName(String) InvalidUserName(String)

Returns an IdentityError indicating the specified user userName is invalid.

LoginAlreadyAssociated() LoginAlreadyAssociated() LoginAlreadyAssociated()

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

PasswordMismatch() PasswordMismatch() PasswordMismatch()

Returns an IdentityError indicating a password mismatch.

PasswordRequiresDigit() PasswordRequiresDigit() PasswordRequiresDigit()

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

PasswordRequiresLower() PasswordRequiresLower() PasswordRequiresLower()

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

PasswordRequiresNonAlphanumeric() PasswordRequiresNonAlphanumeric() PasswordRequiresNonAlphanumeric()

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

PasswordRequiresUniqueChars(Int32) PasswordRequiresUniqueChars(Int32) PasswordRequiresUniqueChars(Int32)

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

PasswordRequiresUpper() PasswordRequiresUpper() PasswordRequiresUpper()

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

PasswordTooShort(Int32) PasswordTooShort(Int32) PasswordTooShort(Int32)

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

RecoveryCodeRedemptionFailed() RecoveryCodeRedemptionFailed() RecoveryCodeRedemptionFailed()

Returns an IdentityError indicating a recovery code was not redeemed.

UserAlreadyHasPassword() UserAlreadyHasPassword() UserAlreadyHasPassword()

Returns an IdentityError indicating a user already has a password.

UserAlreadyInRole(String) UserAlreadyInRole(String) UserAlreadyInRole(String)

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

UserLockoutNotEnabled() UserLockoutNotEnabled() UserLockoutNotEnabled()

Returns an IdentityError indicating user lockout is not enabled.

UserNotInRole(String) UserNotInRole(String) UserNotInRole(String)

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

Applies to