Skip to main content
Version: 4.2

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+
public sealed class OAuthTokenResponse

The component copies these fields into private fields marked DebuggerBrowsableAttribute Never, then drops the object.

Constructors​

Instance member OAuthTokenResponse()​

Initializes a new instance of the OAuthTokenResponse class, for an ExchangeCodeAsync or RefreshTokenCoreAsync override.

Properties​

Instance member AccessToken​

String: Returns the access token.

Instance member ExpiresAt​

Nullable<DateTimeOffset>: Returns the UTC access token expiry computed from expires_in, or null.

Instance member IdToken​

String: Returns the ID token, or null.

Instance member Raw​

Object: Returns the raw response as a DynamicObject. This object contains the tokens: never log it.

Instance member RefreshToken​

String: Returns the refresh token, or null.

Instance member 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.

Instance member Scopes​

String[]: Returns the granted scopes.

Instance member TokenType​

String: Returns the token type, normalized to "Bearer".