Skip to main content
Version: 4.2

OAuthError

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

The reason an authentication attempt failed. Carried by Reason and Reason.

4.2.0+
public enum OAuthError

Fields​

NameDescriptionValue
AccessDeniedThe provider returned error=access_denied: the user declined consent or canceled at the provider.
CanceledCancelSignIn was called, or the user closed the popup. A cancel in a SigningIn handler cancels the sign-in task without a report.
ConfigurationMissing or inconsistent configuration: no client id, no endpoints for a custom provider, an unresolvable client secret for a method that needs one, None for Google or GitHub, a non-https redirect URI on a non-loopback host, a provider endpoint or authority over plain http on a non-loopback host (refused before any request is sent; there is no opt-out), a launcher host with no launcher registered, an Entra Authority whose path conflicts with Tenant or has more than one segment, an Entra Tenant domain whose OpenID Connect metadata cannot be fetched or names no tenant ID, an Entra AllowedTenants entry that is not a tenant ID, or an authority whose discovery document cannot be fetched, is empty or not a JSON object, or does not publish the expected issuer.
ExpiredA callback arrived with no matching attempt in the store, or after the attempt expired.
InvalidStateThe state parameter, or the RFC 9207 iss parameter, did not match the pending attempt, or a redirect callback arrived from a browser that did not start the attempt - the binder cookie written when the attempt was stored is missing or does not match: possible cross-site request forgery, provider mix-up, or replay. The authorization code is ignored, and a stored attempt whose binder did not match is left in place for the browser that holds it.
InvalidTokenThe ID token failed validation: algorithm, signature, iss, aud, azp, exp, nbf, nonce, hd, or for Microsoft Entra tid and AllowedTenants.
ProviderErrorThe provider returned any other error on the callback. The error code, description and URI are exposed to the developer and never echoed to the user.
RejectedThe Authenticating event was canceled by the application. This attempt's tokens are never committed; state stored by an earlier sign-in is untouched.
TimeoutThe pending attempt exceeded SignInTimeout. A callback arriving after that is reported as Expired instead.
TokenRequestFailedThe token endpoint returned an error, or the request failed at the transport level. HttpStatus and the provider error code are exposed.
UnknownAny other exception. Details are in Exception.
UserInfoRequestFailedThe userinfo request, or GitHub's /user request, failed or returned no usable subject.

Used By​

NameDescription
OAuthAuthenticationFailedEventArgs.ReasonReturns the typed failure reason.
OAuthException.ReasonReturns the typed failure reason.