26 instantiations of IdentityError
Microsoft.AspNetCore.Identity.Specification.Tests (2)
IdentitySpecificationTestBase.cs (1)
141public static readonly IdentityError ErrorMessage = new IdentityError { Description = "I'm Bad.", Code = "BadValidator" };
UserManagerSpecificationTests.cs (1)
143public static readonly IdentityError ErrorMessage = new IdentityError { Description = "I'm Bad.", Code = "BadValidator" };
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
1187public static readonly IdentityError ErrorMessage = new IdentityError { Description = "I'm Bad." }; 1785return new IdentityError { Code = Code, Description = string.Format(CultureInfo.InvariantCulture, FormatError, email) };
Microsoft.Extensions.Identity.Core (22)
IdentityErrorDescriber.cs (22)
22return new IdentityError 35return new IdentityError 48return new IdentityError 61return new IdentityError 74return new IdentityError 87return new IdentityError 101return new IdentityError 115return new IdentityError 129return new IdentityError 143return new IdentityError 157return new IdentityError 171return new IdentityError 184return new IdentityError 197return new IdentityError 211return new IdentityError 225return new IdentityError 239return new IdentityError 253return new IdentityError 266return new IdentityError 279return new IdentityError 292return new IdentityError 305return new IdentityError
128 references to IdentityError
Identity.ExternalClaims (5)
Pages\Account\ExternalLogin.cshtml.cs (1)
138foreach (var error in result.Errors)
Pages\Account\Manage\ChangePassword.cshtml.cs (1)
91foreach (var error in changePasswordResult.Errors)
Pages\Account\Manage\SetPassword.cshtml.cs (1)
83foreach (var error in addPasswordResult.Errors)
Pages\Account\Register.cshtml.cs (1)
84foreach (var error in result.Errors)
Pages\Account\ResetPassword.cshtml.cs (1)
83foreach (var error in result.Errors)
IdentitySample.DefaultUI (1)
Areas\Identity\Pages\Account\Register.cshtml.cs (1)
114foreach (var error in result.Errors)
IdentitySample.Mvc (2)
Controllers\AccountController.cs (1)
539foreach (var error in result.Errors)
Controllers\ManageController.cs (1)
353foreach (var error in result.Errors)
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
436foreach (var error in result.Errors)
SignInManager.cs (1)
995foreach (var error in IdentityResult.Errors)
Microsoft.AspNetCore.Identity.Specification.Tests (5)
IdentityResultAssert.cs (1)
47public static void IsFailure(IdentityResult result, IdentityError error = null)
IdentitySpecificationTestBase.cs (2)
141public static readonly IdentityError ErrorMessage = new IdentityError { Description = "I'm Bad.", Code = "BadValidator" }; 203var error = AlwaysBadValidator.ErrorMessage;
UserManagerSpecificationTests.cs (2)
143public static readonly IdentityError ErrorMessage = new IdentityError { Description = "I'm Bad.", Code = "BadValidator" }; 251var error = _errorDescriber.InvalidUserName("");
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
1187public static readonly IdentityError ErrorMessage = new IdentityError { Description = "I'm Bad." }; 1783public override IdentityError DuplicateEmail(string email)
Microsoft.AspNetCore.Identity.UI (10)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
220foreach (var error in result.Errors)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (1)
129foreach (var error in changePasswordResult.Errors)
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (1)
117foreach (var error in addPasswordResult.Errors)
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
160foreach (var error in result.Errors)
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (1)
126foreach (var error in result.Errors)
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
220foreach (var error in result.Errors)
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (1)
129foreach (var error in changePasswordResult.Errors)
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (1)
117foreach (var error in addPasswordResult.Errors)
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
160foreach (var error in result.Errors)
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (1)
126foreach (var error in result.Errors)
Microsoft.Extensions.Identity.Core (101)
IdentityErrorDescriber.cs (66)
17/// Returns the default <see cref="IdentityError"/>. 19/// <returns>The default <see cref="IdentityError"/>.</returns> 20public virtual IdentityError DefaultError() 30/// Returns an <see cref="IdentityError"/> indicating a concurrency failure. 32/// <returns>An <see cref="IdentityError"/> indicating a concurrency failure.</returns> 33public virtual IdentityError ConcurrencyFailure() 43/// Returns an <see cref="IdentityError"/> indicating a password mismatch. 45/// <returns>An <see cref="IdentityError"/> indicating a password mismatch.</returns> 46public virtual IdentityError PasswordMismatch() 56/// Returns an <see cref="IdentityError"/> indicating an invalid token. 58/// <returns>An <see cref="IdentityError"/> indicating an invalid token.</returns> 59public virtual IdentityError InvalidToken() 69/// Returns an <see cref="IdentityError"/> indicating a recovery code was not redeemed. 71/// <returns>An <see cref="IdentityError"/> indicating a recovery code was not redeemed.</returns> 72public virtual IdentityError RecoveryCodeRedemptionFailed() 82/// Returns an <see cref="IdentityError"/> indicating an external login is already associated with an account. 84/// <returns>An <see cref="IdentityError"/> indicating an external login is already associated with an account.</returns> 85public virtual IdentityError LoginAlreadyAssociated() 95/// Returns an <see cref="IdentityError"/> indicating the specified user <paramref name="userName"/> is invalid. 98/// <returns>An <see cref="IdentityError"/> indicating the specified user <paramref name="userName"/> is invalid.</returns> 99public virtual IdentityError InvalidUserName(string? userName) 109/// Returns an <see cref="IdentityError"/> indicating the specified <paramref name="email"/> is invalid. 112/// <returns>An <see cref="IdentityError"/> indicating the specified <paramref name="email"/> is invalid.</returns> 113public virtual IdentityError InvalidEmail(string? email) 123/// Returns an <see cref="IdentityError"/> indicating the specified <paramref name="userName"/> already exists. 126/// <returns>An <see cref="IdentityError"/> indicating the specified <paramref name="userName"/> already exists.</returns> 127public virtual IdentityError DuplicateUserName(string userName) 137/// Returns an <see cref="IdentityError"/> indicating the specified <paramref name="email"/> is already associated with an account. 140/// <returns>An <see cref="IdentityError"/> indicating the specified <paramref name="email"/> is already associated with an account.</returns> 141public virtual IdentityError DuplicateEmail(string email) 151/// Returns an <see cref="IdentityError"/> indicating the specified <paramref name="role"/> name is invalid. 154/// <returns>An <see cref="IdentityError"/> indicating the specific role <paramref name="role"/> name is invalid.</returns> 155public virtual IdentityError InvalidRoleName(string? role) 165/// Returns an <see cref="IdentityError"/> indicating the specified <paramref name="role"/> name already exists. 168/// <returns>An <see cref="IdentityError"/> indicating the specific role <paramref name="role"/> name already exists.</returns> 169public virtual IdentityError DuplicateRoleName(string role) 179/// Returns an <see cref="IdentityError"/> indicating a user already has a password. 181/// <returns>An <see cref="IdentityError"/> indicating a user already has a password.</returns> 182public virtual IdentityError UserAlreadyHasPassword() 192/// Returns an <see cref="IdentityError"/> indicating user lockout is not enabled. 194/// <returns>An <see cref="IdentityError"/> indicating user lockout is not enabled.</returns> 195public virtual IdentityError UserLockoutNotEnabled() 205/// Returns an <see cref="IdentityError"/> indicating a user is already in the specified <paramref name="role"/>. 208/// <returns>An <see cref="IdentityError"/> indicating a user is already in the specified <paramref name="role"/>.</returns> 209public virtual IdentityError UserAlreadyInRole(string role) 219/// Returns an <see cref="IdentityError"/> indicating a user is not in the specified <paramref name="role"/>. 222/// <returns>An <see cref="IdentityError"/> indicating a user is not in the specified <paramref name="role"/>.</returns> 223public virtual IdentityError UserNotInRole(string role) 233/// Returns an <see cref="IdentityError"/> indicating a password of the specified <paramref name="length"/> does not meet the minimum length requirements. 236/// <returns>An <see cref="IdentityError"/> indicating a password of the specified <paramref name="length"/> does not meet the minimum length requirements.</returns> 237public virtual IdentityError PasswordTooShort(int length) 247/// Returns an <see cref="IdentityError"/> indicating a password does not meet the minimum number <paramref name="uniqueChars"/> of unique chars. 250/// <returns>An <see cref="IdentityError"/> indicating a password does not meet the minimum number <paramref name="uniqueChars"/> of unique chars.</returns> 251public virtual IdentityError PasswordRequiresUniqueChars(int uniqueChars) 261/// Returns an <see cref="IdentityError"/> indicating a password entered does not contain a non-alphanumeric character, which is required by the password policy. 263/// <returns>An <see cref="IdentityError"/> indicating a password entered does not contain a non-alphanumeric character.</returns> 264public virtual IdentityError PasswordRequiresNonAlphanumeric() 274/// Returns an <see cref="IdentityError"/> indicating a password entered does not contain a numeric character, which is required by the password policy. 276/// <returns>An <see cref="IdentityError"/> indicating a password entered does not contain a numeric character.</returns> 277public virtual IdentityError PasswordRequiresDigit() 287/// Returns an <see cref="IdentityError"/> indicating a password entered does not contain a lower case letter, which is required by the password policy. 289/// <returns>An <see cref="IdentityError"/> indicating a password entered does not contain a lower case letter.</returns> 290public virtual IdentityError PasswordRequiresLower() 300/// Returns an <see cref="IdentityError"/> indicating a password entered does not contain an upper case letter, which is required by the password policy. 302/// <returns>An <see cref="IdentityError"/> indicating a password entered does not contain an upper case letter.</returns> 303public virtual IdentityError PasswordRequiresUpper()
IdentityResult.cs (8)
16private readonly List<IdentityError> _errors = new List<IdentityError>(); 25/// An <see cref="IEnumerable{T}"/> of <see cref="IdentityError"/> instances containing errors 28/// <value>An <see cref="IEnumerable{T}"/> of <see cref="IdentityError"/> instances.</value> 29public IEnumerable<IdentityError> Errors => _errors; 40/// <param name="errors">An optional array of <see cref="IdentityError"/>s which caused the operation to fail.</param> 42public static IdentityResult Failed(params IdentityError[] errors) 52internal static IdentityResult Failed(List<IdentityError>? errors)
PasswordValidator.cs (7)
43List<IdentityError>? errors = null; 48errors ??= new List<IdentityError>(); 53errors ??= new List<IdentityError>(); 58errors ??= new List<IdentityError>(); 63errors ??= new List<IdentityError>(); 68errors ??= new List<IdentityError>(); 73errors ??= new List<IdentityError>();
RoleManager.cs (2)
399List<IdentityError>? errors = null; 405errors ??= new List<IdentityError>();
RoleValidator.cs (4)
46private async Task<List<IdentityError>?> ValidateRoleName(RoleManager<TRole> manager, TRole role) 48List<IdentityError>? errors = null; 52errors ??= new List<IdentityError>(); 61errors ??= new List<IdentityError>();
UserManager.cs (4)
2309List<IdentityError>? errors = null; 2315errors ??= new List<IdentityError>(); 2339List<IdentityError>? errors = null; 2348errors ??= new List<IdentityError>();
UserValidator.cs (10)
52private async Task<List<IdentityError>?> ValidateUserName(UserManager<TUser> manager, TUser user) 54List<IdentityError>? errors = null; 58errors ??= new List<IdentityError>(); 64errors ??= new List<IdentityError>(); 73errors ??= new List<IdentityError>(); 82private async Task<List<IdentityError>?> ValidateEmail(UserManager<TUser> manager, TUser user, List<IdentityError>? errors) 87errors ??= new List<IdentityError>(); 93errors ??= new List<IdentityError>(); 101errors ??= new List<IdentityError>();