Table of Contents

Enum FailureCode

Namespace
The.Security
Assembly
Instagile.dll

Error categories which can occur during authentication.

public enum FailureCode

Fields

AccountNotFound = 18

asserted IUserAccount was not found in entity store

AccountRequiredClaimInvalid = 20

asserted IUserAccount has an IUserClaim with an invalid Value

AccountRequiredClaimNotFound = 19

asserted IUserAccount does not have a required IUserClaim

CredentialsIncomplete = 3

the authenticator accepted the supplied credentials but now requires further credentials to be supplied

CredentialsInvalid = 2

the authenticator rejected supplied credentials

CredentialsMissing = 1

credentials required by the authenticator have not been supplied

ExternalLoginFailed = 42

entitystore refused to accept asserted identity

InternalError = 5

unexpected crash or programming error (client-side)

LoggedOut = 4

a formerly authenticated session has ended - for example, a windows user disconnecting from IIS

LookupPrerequisiteAsync = 39

Local-only account lookup was attempted, but a remote check is required

MissingHardwareDriver = 15
MissingHardwareToken = 16
MissingInternalError = 13

unexpectedly missing an error code despite having an error status (this is a programming error)

MissingRegistration = 14

RegisterAuthentication() has not been called

MissingTokenKeyPair = 17
NotLoggedIn = 0

authentication was not attempted, or an unauthenticated principal was passed - a precondition failure

PermissionDenied = 44

authentication succeeded, but IAuthorisation check failed

PermissionLookupFailed = 43

authentication succeeded, but GetIdentityRolesAsync(CallbackEnvironment, IEntityContext, Identity) failed

PermissionLookupPrerequisiteAsync = 45

authentication succeeded, but GetIdentityRoles(CallbackEnvironment, Identity) could not be called

RateLimitExceeded = 41

There were too many login attempts for this identity within a period of time.

RemoteConnectionError = 7
RemoteEncryptionDecryptKeyFailed = 35
RemoteEncryptionEncryptKeyFailed = 36
RemoteEncryptionMessageNotEncrypted = 37
RemoteEncryptionPrerequisiteSession = 34
RemoteEncryptionSymmetricKeyMissing = 38
RemoteInternalError = 6

unexpected crash or programming error (server-side)

RemoteRealmMismatch = 40

when using signed ops or encrypted sessions, an identity from an unsupported authentication mechanism was provided

RemoteSignatureCheckFailed = 33
RemoteSignatureSubjectMismatch = 31
RemoteSignatureTicketUnsigned = 32
RemoteSignatureUsernameMismatch = 30

when using both signed ops and encrypted sessions, different user accounts were found for each protocol

UnsupportedFeatureAccountLookup = 12

the authenticator does not support using an identity to find a user account

UnsupportedFeatureAmbientIdentity = 8

the authenticator does not support reading a current identity via GetIdentity()

UnsupportedFeatureEncryptedSession = 10

the authenticator does not support encrypting data for an identity

UnsupportedFeatureLocalVerification = 9

the authenticator does not support validating an asserted identity via VerifyIdentity()

UnsupportedFeatureSignedOperations = 11

the authenticator does not support using an identity to sign operations

VerificationAnonymousForbidden = 23

the authenticator produced a generic subject, which is disallowed by configuration

VerificationExpiredCredentials = 28
VerificationIncorrectCredentials = 27
VerificationOneTimeCodeAttemptLimitExceeded = 29
VerificationPrerequisiteAspNetCore = 24

AddTheFramework() was called before any ASP.NET Core security was set up

VerificationPrerequisiteAsync = 25

Local-only authentication was attempted, but a remote check is required

VerificationPrerequisiteHttpContext = 26
VerificationRealmMismatch = 21

the authenticator was asked to verify a subject produced by a different authentication mechanism

VerificationSubjectMismatch = 22

the authenticator was asked to verify a subject other than the ambient identity