Class TokenErrorResponse
OAuth 2.0 model for a unsuccessful access token response as specified in http://tools.ietf.org/html/rfc6749#section-5.2.
Inherited Members
Namespace: Google.Apis.Auth.OAuth2.Responses
Assembly: Google.Apis.Auth.dll
Syntax
public class TokenErrorResponse
Constructors
TokenErrorResponse()
Constructs a new empty token error response.
Declaration
public TokenErrorResponse()
TokenErrorResponse(AuthorizationCodeResponseUrl)
Constructs a new token error response from the given authorization code response.
Declaration
public TokenErrorResponse(AuthorizationCodeResponseUrl authorizationCode)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationCodeResponseUrl | authorizationCode |
Properties
Error
Gets or sets error code (e.g. "invalid_request", "invalid_client", "invalid_grant", "unauthorized_client", "unsupported_grant_type", "invalid_scope") as specified in http://tools.ietf.org/html/rfc6749#section-5.2.
Declaration
[JsonProperty("error")]
public string Error { get; set; }
Property Value
Type | Description |
---|---|
string |
ErrorDescription
Gets or sets a human-readable text which provides additional information used to assist the client developer in understanding the error occurred.
Declaration
[JsonProperty("error_description")]
public string ErrorDescription { get; set; }
Property Value
Type | Description |
---|---|
string |
ErrorUri
Gets or sets the URI identifying a human-readable web page with provides information about the error.
Declaration
[JsonProperty("error_uri")]
public string ErrorUri { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |