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+- C#
- VB.NET
public class OAuthAuthenticationFailedEventArgs : EventArgs
Public Class OAuthAuthenticationFailedEventArgs
Inherits EventArgs
Properties
Error
String: Returns the provider error code, or null.
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.
ErrorUri
String: Returns the provider error URI, or null.
Exception
Exception: Returns the underlying exception, or null.
HttpStatus
Nullable<Int32>: Returns the HTTP status of the failing request, or null.
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.
Provider
OAuthProvider: Returns the provider the attempt used.
Reason
OAuthError: Returns the typed failure reason.
Source
Nullable<OAuthCallbackSource>: Returns how the answer reached the component, or null when the attempt failed before any answer arrived.
Used By
| Name | Description |
|---|---|
| OAuthAuthenticationFailedEventHandler | Represents the method that handles the AuthenticationFailed event. 4.2.0+ |