Skip to main content
Version: 4.2

OAuthTokenExpiredEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Provides data for the TokenExpired event. The access token can no longer be used and could not be renewed. The identity stays signed in unless the handler opts into signing out, so an hour-old login without offline access does not silently log the user out. ProviderUnavailable keeps the stored tokens so the caller can retry.

4.2.0+
public class OAuthTokenExpiredEventArgs : OAuthEventArgs

Properties​

Instance member Error​

String: Returns the provider error code, or null.

Instance member ErrorDescription​

String: Returns the provider error text, or null.

Instance member Exception​

Exception: Returns the underlying exception, or null.

Instance member Reason​

OAuthTokenExpiredReason: Returns why the token could not be renewed.

Instance member SignOut​

Boolean: Returns or sets whether the component signs the user out. False by default. Setting it to true runs a local sign-out with TokenExpired: no revocation (the grant is dead, absent or unreachable on every reason) and no end-session navigation. A handler that wants the provider sign-out hop leaves this false and calls SignOut with signOutAtProvider: true itself.

Used By​

NameDescription
OAuthTokenExpiredEventHandlerRepresents the method that handles the TokenExpired event.
4.2.0+