Skip to main content
Version: 4.2

PasskeyAuthenticationFailedEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Provides data for the AuthenticationFailed event: the single failure channel for every stage of a registration or authentication ceremony. Raised before the awaited task is canceled or faulted. The component never throws out of the browser's answer; the management methods (GetCredentialsAsync, RenameCredentialAsync, DeleteCredentialAsync, GetCapabilitiesAsync) do not use this event and fault their task instead.

4.2.0+
public class PasskeyAuthenticationFailedEventArgs : EventArgs

Properties​

Instance member Credential​

PasskeyCredential: Returns a defensive copy of the stored credential, or null. Set only for CounterRegression, StoreConflict and Rejected: those failures come after the credential's own signature verified, so the credential named was really used and a client without the private key cannot make one appear here. What it is for depends on the reason. For CounterRegression it is a risk signal - a possible clone, a malfunction, or two assertions that crossed: flag the credential and re-verify the user; disabling it is the application's own risk decision. For StoreConflict it is 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: the record changed under a concurrent sign-in or edit, the user tries again, and on its own it is never a reason to flag or disable the credential. For Rejected it is the credential the application's own Authenticating handler saw when it vetoed the sign-in. Act on Reason, not on the presence of a credential here. A failure a client can cause without the private key - a bad signature, a user handle or an account that does not match, a stale challenge - names no credential, because anyone who has seen a credential id could otherwise lead the application to disable another user's passkey. Editing it changes nothing. Never set on a registration.

Instance member Detail​

String: Returns the component's own developer detail, or null. For Configuration it names the property or check that failed — the name only, never a value. For Rejected it is the Reason the handler supplied. For InvalidResponse it names the member or structure that failed to parse. For developers and logs, never for an end user: Message is the safe, localized catalogue string and names nothing.

Instance member Exception​

Exception: Returns the underlying exception, or null. Rebuilt by PasskeyRedaction.Safe with its message scrubbed and its stack trace dropped before it leaves the component.

Instance member Message​

String: Returns a safe, localized message suitable for display, resolved from the framework's own string table. It never contains a challenge, a credential id, a user handle, a key or a user id.

Instance member Operation​

PasskeyOperation: Returns which ceremony failed.

Instance member Reason​

PasskeyError: Returns the typed failure reason.

Used By​

NameDescription
PasskeyAuthenticationFailedEventHandlerRepresents the method that handles the AuthenticationFailed event.
4.2.0+