PasskeyError
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
The reason a registration or authentication ceremony failed. Carried by Reason and Reason. One member per failure the component can tell apart; nothing here ever carries a challenge, a key, a credential id or a user handle.
4.2.0+- C#
- VB.NET
public enum PasskeyError
Public Enum PasskeyError
Fields
| Name | Description | Value |
|---|---|---|
| Cancelled | The ceremony ended without an answer: the user dismissed the browser prompt (the browser's NotAllowedError, which also covers a prompt that found no usable credential), the caller's CancellationToken was canceled, a newer ceremony on the same component replaced this one, the component was disposed, or SignOut was called during the ceremony. The awaited task is canceled, not faulted. | |
| ChallengeMismatch | The challenge in the client data is not the one this ceremony issued: a replayed, stale or foreign answer. | |
| Configuration | The component cannot describe the relying party: RelyingPartyId is not a valid domain or is not the host of the current origin nor a registrable suffix of it; an AllowedOrigins entry is not an absolute origin, carries a path, query, fragment or user information, or uses plain http on a host other than localhost; the current origin cannot be determined because the session has no startup URI; or the browser rejected the options with SecurityError or TypeError. Checked before any prompt is shown, except for host facts that can only surface after the browser has answered: a stored record that breaks the store's contract — another credential than the one asked for, a field outside its bounds or its enum, a public key the component cannot read back or an algorithm that disagrees with it — and a key that passed every check but that this host's cryptographic provider refuses to verify (a FIPS policy, a provider without P-256). Detail names the property or check that failed, never a value. | |
| CounterRegression | The signature counter did not increase although the authenticator or the stored record reports a nonzero counter: a signal — not proof — that the credential may have been cloned, or that the authenticator malfunctioned, or that two assertions crossed. The component fails the ceremony and commits nothing; the credential is on Credential for the application to disable or flag. A stored and asserted counter of zero is normal for synced passkeys and is never this. | |
| CredentialExists | The credential id is already registered for this relying party: the store refused the insert, or the authenticator recognized an excluded credential (the browser's InvalidStateError). | |
| CredentialMismatch | The credential exists but does not describe the account this ceremony is for: its stored user id differs from the one named, the user handle the authenticator returned differs from the stored one, or its backup eligibility differs from the value recorded at registration. | |
| InvalidResponse | The browser's answer is not a well-formed WebAuthn response: it is missing, is not an object, has a member that is not base64url, exceeds a size limit, carries malformed or non-canonical CBOR or JSON, names the wrong ceremony type, lacks attested credential data at registration or carries it at authentication, sets backup state without backup eligibility, has a credential id longer than 1023 bytes or a user handle longer than 64, reports a rawId that differs from the attested credential id, or carries a public key whose structure, curve point or key strength fails the component's checks. | |
| InvalidSignature | The assertion signature is malformed or does not verify over the authenticator data and the client data hash with the stored public key. | |
| NotSupported | The browser cannot run the ceremony: it has no WebAuthn support, the page is not a secure context, or no available authenticator satisfies the resident-key or user-verification requirement (the browser's ConstraintError). GetCapabilitiesAsync tells this before a prompt is shown. | |
| OriginMismatch | The origin in the client data is not an allowed origin, or the client data does not report a same-origin ceremony: "crossOrigin":false directly after the origin. A browser in a cross-origin frame reports crossOrigin true and writes any topOrigin after it, so v1 refuses every framed ceremony a conforming browser can report; a topOrigin after "crossOrigin":false, which only a non-conforming client writes, is ignored. | |
| Rejected | The Authenticating event was canceled by the application. Nothing is committed and nothing is assigned; a sign-in already in effect is untouched. | |
| RelyingPartyMismatch | The relying party id hash in the authenticator data is not the SHA-256 of the effective RelyingPartyId: the credential was created for another relying party. | |
| StoreConflict | The store could not commit the authentication state because the record changed under it (Conflict). Nothing was signed in; the user simply tries again. The credential is on Credential, named so the application can log which passkey it was — its Name or a short prefix of its id (see PasskeyCredential), never the record wholesale; this is not a risk signal. | |
| StoreFailed | A store method threw. The exception is carried on Exception, scrubbed. Distinct from StoreUnavailable because the remedy is different: this is an operational failure to retry, not a missing registration. | |
| StoreUnavailable | No IPasskeyCredentialStore is registered with Services, or resolving the registration threw. Checked before any prompt is shown. | |
| Timeout | The browser did not answer within Timeout, as measured by the component's own timer — the browser reports its own timeout as a cancellation and is not consulted. The awaited task is canceled, not faulted. | |
| Unknown | Any other exception, including one thrown by an event handler. Details are on Exception. | |
| UnknownCredential | No credential with the asserted id is registered for this relying party, the named account has no credentials at all, or the credential was deleted between the lookup and the commit (the store answered NotFound). | |
| UnsupportedAlgorithm | The credential's public key is neither ES256 (-7, P-256) nor RS256 (-257), or its key type does not match its algorithm; a stored algorithm that disagrees with the stored key is a store defect, Configuration. ES256 and RS256 are the only algorithms this component advertises or verifies. A browser NotSupportedError is reported as NotSupported instead. | |
| UnsupportedAttestationFormat | The attestation object's format is not "none", or its statement is not the empty map. The component always requests attestation "none" and fails closed on every other format, including packed self-attestation, in v1. | |
| UserPresenceRequired | The authenticator did not report user presence: the UP flag is clear. Always required. | |
| UserVerificationRequired | UserVerification is Required and the authenticator did not verify the user — the UV flag is clear — or, at sign-in, the credential was registered without user verification, so its UV flag cannot be relied on. |
Used By
| Name | Description |
|---|---|
| PasskeyException.Reason | Returns the typed failure reason. |
| PasskeyAuthenticationFailedEventArgs.Reason | Returns the typed failure reason. |