Skip to main content
Version: 4.2

OAuthException

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

The exception that faults the task returned by SignInAsync, and that GetAccessToken throws when the component is not signed in.

4.2.0+
public class OAuthException : Exception

Message is built from Reason, Error and HttpStatus only. It never contains an authorization code, state, nonce, PKCE verifier, token or client secret, and it never folds in ErrorDescription, which is attacker-influenceable on the callback.

Properties​

Instance member Error​

String: Returns the provider error code, or null.

Instance member ErrorDescription​

String: Returns the provider error text, or null. Exposed as a property and never folded into Message.

Instance member ErrorUri​

String: Returns the provider error URI, or null.

Instance member HttpStatus​

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

Instance member Provider​

OAuthProvider: Returns the provider the attempt used.

Instance member Reason​

OAuthError: Returns the typed failure reason.