Skip to main content
Version: 4.2

OAuthAuthenticationFailedEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Provides data for the AuthenticationFailed event: the single failure channel for every stage. The component never throws out of a callback path.

4.2.0+
public class OAuthAuthenticationFailedEventArgs : EventArgs

Properties​

Instance member Error​

String: Returns the provider error code, or null.

Instance member ErrorDescription​

String: Returns the provider error text, or — when the component itself failed the attempt — the component's own developer detail, or null. The component writes this member for Configuration, where it names the check that failed: the client id, the client authentication method, the redirect URI, an endpoint, the Entra Authority/Tenant shape or conflict, or the environment variable a client id or secret could not be resolved from — the name only, never a value. For Rejected it is the Reason the handler supplied. Message stays the safe, localized catalogue string and names nothing. Provider text is attacker-influenceable on the callback: this member is for developers and logs, never for an end user.

Instance member ErrorUri​

String: Returns the provider error URI, or null.

Instance member Exception​

Exception: Returns the underlying exception, or null.

Instance member HttpStatus​

Nullable<Int32>: Returns the HTTP status of the failing request, or null.

Instance member Message​

String: Returns a safe, localized message suitable for display, resolved from the framework's own string table. It never contains an authorization code, state, nonce, PKCE verifier, token or client secret.

Instance member Provider​

OAuthProvider: Returns the provider the attempt used.

Instance member Reason​

OAuthError: Returns the typed failure reason.

Instance member Source​

Nullable<OAuthCallbackSource>: Returns how the answer reached the component, or null when the attempt failed before any answer arrived.

Used By​

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