OAuthTokenResponse
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
The result of a token or refresh request. Returned by the ExchangeCodeAsync and RefreshTokenCoreAsync overrides only.
4.2.0+- C#
- VB.NET
public sealed class OAuthTokenResponse
Public NotInheritable Class OAuthTokenResponse
The component copies these fields into private fields marked DebuggerBrowsableAttribute Never, then drops the object.
Constructors
OAuthTokenResponse()
Initializes a new instance of the OAuthTokenResponse class, for an ExchangeCodeAsync or RefreshTokenCoreAsync override.
Properties
AccessToken
String: Returns the access token.
ExpiresAt
Nullable<DateTimeOffset>: Returns the UTC access token expiry computed from expires_in, or null.
IdToken
String: Returns the ID token, or null.
Raw
Object: Returns the raw response as a DynamicObject. This object contains the tokens: never log it.
RefreshToken
String: Returns the refresh token, or null.
RefreshTokenExpiresAt
Nullable<DateTimeOffset>: Returns the UTC refresh token expiry computed from refresh_token_expires_in, or null. GitHub sends this; the other providers do not.
Scopes
String[]: Returns the granted scopes.
TokenType
String: Returns the token type, normalized to "Bearer".