Class OAuth2TokenResponse
Container for the OAuth token / refresh response
Inheritance
System.Object
OAuth2TokenResponse
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dapplo.HttpExtensions.OAuth
Assembly: Dapplo.HttpExtensions.OAuth.dll
Syntax
public class OAuth2TokenResponse
Properties
| Improve this Doc View SourceAccessToken
The access token
Declaration
public string AccessToken { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Error
The error
Declaration
public string Error { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ErrorDescription
Details to the error
Declaration
public string ErrorDescription { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Expires
Returns the time that the token expires
Declaration
public DateTimeOffset Expires { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
ExpiresInSeconds
DateTimeOffset.Now.AddSeconds(expiresIn)
Declaration
public long ExpiresInSeconds { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
HasError
Test if the response has an error
Declaration
public bool HasError { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsInvalidGrant
Test if the error is an invalid grant
Declaration
public bool IsInvalidGrant { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
RefreshToken
Refresh token, used to get a new access token
Declaration
public string RefreshToken { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TokenType
Type for the token
Declaration
public string TokenType { get; set; }
Property Value
Type | Description |
---|---|
System.String |