Improve this Doc View Source

Class OAuth2TokenResponse

Container for the OAuth token / refresh response

Inheritance
System.Object
OAuth2TokenResponse
Namespace:Dapplo.HttpExtensions.OAuth
Assembly:Dapplo.HttpExtensions.dll
Syntax
public class OAuth2TokenResponse

Properties

| Improve this Doc View Source

AccessToken

The access token

Declaration
public string AccessToken { get; set; }
Returns
Type Description
System.String
| Improve this Doc View Source

Error

The error

Declaration
public string Error { get; set; }
Returns
Type Description
System.String
| Improve this Doc View Source

ErrorDescription

Details to the error

Declaration
public string ErrorDescription { get; set; }
Returns
Type Description
System.String
| Improve this Doc View Source

Expires

Returns the time that the token expires

Declaration
public DateTimeOffset Expires { get; }
Returns
Type Description
System.DateTimeOffset
| Improve this Doc View Source

ExpiresInSeconds

DateTimeOffset.Now.AddSeconds(expiresIn)

Declaration
public long ExpiresInSeconds { get; set; }
Returns
Type Description
System.Int64
| Improve this Doc View Source

HasError

Test if the response has an error

Declaration
public bool HasError { get; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsInvalidGrant

Test if the error is an invalid grant

Declaration
public bool IsInvalidGrant { get; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

RefreshToken

Refresh token, used to get a new access token

Declaration
public string RefreshToken { get; set; }
Returns
Type Description
System.String
| Improve this Doc View Source

TokenType

Type for the token

Declaration
public string TokenType { get; set; }
Returns
Type Description
System.String