OAuthTokenResponse Class

Definition

Response from an provider for an OAuth token request.

public ref class OAuthTokenResponse
public ref class OAuthTokenResponse : IDisposable
public class OAuthTokenResponse
public class OAuthTokenResponse : IDisposable
type OAuthTokenResponse = class
type OAuthTokenResponse = class
    interface IDisposable
Public Class OAuthTokenResponse
Public Class OAuthTokenResponse
Implements IDisposable
Inheritance
OAuthTokenResponse
Implements

Properties

AccessToken

Gets or sets the access token issued by the OAuth provider.

Error

The exception in the event the response was a failure.

ExpiresIn

Gets or sets the validatity lifetime of the token in seconds.

RefreshToken

Gets or sets a refresh token that applications can use to obtain another access token if tokens can expire.

Response

Gets or sets the received JSON payload.

TokenType

Gets or sets the token type.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Failed(Exception)

Creates a failed OAuthTokenResponse.

Success(JObject)
Success(JsonDocument)

Creates a successful OAuthTokenResponse.

Applies to