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+- C#
- VB.NET
public class OAuthTokenExpiredEventArgs : OAuthEventArgs
Public Class OAuthTokenExpiredEventArgs
Inherits OAuthEventArgs
Properties
Error
String: Returns the provider error code, or null.
ErrorDescription
String: Returns the provider error text, or null.
Exception
Exception: Returns the underlying exception, or null.
Reason
OAuthTokenExpiredReason: Returns why the token could not be renewed.
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
| Name | Description |
|---|---|
| OAuthTokenExpiredEventHandler | Represents the method that handles the TokenExpired event. 4.2.0+ |