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 SourceAccessToken
The access token
Declaration
public string AccessToken { get; set; }
Returns
Type | Description |
---|---|
System.String |
Error
The error
Declaration
public string Error { get; set; }
Returns
Type | Description |
---|---|
System.String |
ErrorDescription
Details to the error
Declaration
public string ErrorDescription { get; set; }
Returns
Type | Description |
---|---|
System.String |
Expires
Returns the time that the token expires
Declaration
public DateTimeOffset Expires { get; }
Returns
Type | Description |
---|---|
System.DateTimeOffset |
ExpiresInSeconds
DateTimeOffset.Now.AddSeconds(expiresIn)
Declaration
public long ExpiresInSeconds { get; set; }
Returns
Type | Description |
---|---|
System.Int64 |
HasError
Test if the response has an error
Declaration
public bool HasError { get; }
Returns
Type | Description |
---|---|
System.Boolean |
IsInvalidGrant
Test if the error is an invalid grant
Declaration
public bool IsInvalidGrant { get; }
Returns
Type | Description |
---|---|
System.Boolean |
RefreshToken
Refresh token, used to get a new access token
Declaration
public string RefreshToken { get; set; }
Returns
Type | Description |
---|---|
System.String |
TokenType
Type for the token
Declaration
public string TokenType { get; set; }
Returns
Type | Description |
---|---|
System.String |