Enum FailureCode
Error categories which can occur during authentication.
public enum FailureCode
Fields
AccountNotFound = 18asserted IUserAccount was not found in entity store
AccountRequiredClaimInvalid = 20asserted IUserAccount has an IUserClaim with an invalid Value
AccountRequiredClaimNotFound = 19asserted IUserAccount does not have a required IUserClaim
CredentialsIncomplete = 3the authenticator accepted the supplied credentials but now requires further credentials to be supplied
CredentialsInvalid = 2the authenticator rejected supplied credentials
CredentialsMissing = 1credentials required by the authenticator have not been supplied
ExternalLoginFailed = 42entitystore refused to accept asserted identity
InternalError = 5unexpected crash or programming error (client-side)
LoggedOut = 4a formerly authenticated session has ended - for example, a windows user disconnecting from IIS
LookupPrerequisiteAsync = 39Local-only account lookup was attempted, but a remote check is required
MissingHardwareDriver = 15MissingHardwareToken = 16MissingInternalError = 13unexpectedly missing an error code despite having an error status (this is a programming error)
MissingRegistration = 14RegisterAuthentication() has not been called
MissingTokenKeyPair = 17NotLoggedIn = 0authentication was not attempted, or an unauthenticated principal was passed - a precondition failure
PermissionDenied = 44authentication succeeded, but IAuthorisation check failed
PermissionLookupFailed = 43authentication succeeded, but GetIdentityRolesAsync(CallbackEnvironment, IEntityContext, Identity) failed
PermissionLookupPrerequisiteAsync = 45authentication succeeded, but GetIdentityRoles(CallbackEnvironment, Identity) could not be called
RateLimitExceeded = 41There were too many login attempts for this identity within a period of time.
RemoteConnectionError = 7RemoteEncryptionDecryptKeyFailed = 35RemoteEncryptionEncryptKeyFailed = 36RemoteEncryptionMessageNotEncrypted = 37RemoteEncryptionPrerequisiteSession = 34RemoteEncryptionSymmetricKeyMissing = 38RemoteInternalError = 6unexpected crash or programming error (server-side)
RemoteRealmMismatch = 40when using signed ops or encrypted sessions, an identity from an unsupported authentication mechanism was provided
RemoteSignatureCheckFailed = 33RemoteSignatureSubjectMismatch = 31RemoteSignatureTicketUnsigned = 32RemoteSignatureUsernameMismatch = 30when using both signed ops and encrypted sessions, different user accounts were found for each protocol
UnsupportedFeatureAccountLookup = 12the authenticator does not support using an identity to find a user account
UnsupportedFeatureAmbientIdentity = 8the authenticator does not support reading a current identity via GetIdentity()
UnsupportedFeatureEncryptedSession = 10the authenticator does not support encrypting data for an identity
UnsupportedFeatureLocalVerification = 9the authenticator does not support validating an asserted identity via VerifyIdentity()
UnsupportedFeatureSignedOperations = 11the authenticator does not support using an identity to sign operations
VerificationAnonymousForbidden = 23the authenticator produced a generic subject, which is disallowed by configuration
VerificationExpiredCredentials = 28VerificationIncorrectCredentials = 27VerificationOneTimeCodeAttemptLimitExceeded = 29VerificationPrerequisiteAspNetCore = 24AddTheFramework() was called before any ASP.NET Core security was set up
VerificationPrerequisiteAsync = 25Local-only authentication was attempted, but a remote check is required
VerificationPrerequisiteHttpContext = 26VerificationRealmMismatch = 21the authenticator was asked to verify a subject produced by a different authentication mechanism
VerificationSubjectMismatch = 22the authenticator was asked to verify a subject other than the ambient identity