Class AuthorizationCodeResponseUrl (1.68.0)

public class AuthorizationCodeResponseUrl

Authorization Code response for the redirect URL after end user grants or denies authorization as specified in http://tools.ietf.org/html/rfc6749#section-4.1.2.

Check that Code is not null or empty to verify the end-user granted authorization.

Inheritance

object > AuthorizationCodeResponseUrl

Namespace

Google.Apis.Auth.OAuth2.Responses

Assembly

Google.Apis.Auth.dll

Constructors

AuthorizationCodeResponseUrl()

public AuthorizationCodeResponseUrl()

Constructs a new empty authorization code response URL.

AuthorizationCodeResponseUrl(IDictionary<string, string>)

public AuthorizationCodeResponseUrl(IDictionary<string, string> queryString)

Constructs a new authorization code response URL from the specified dictionary.

Parameter
Name Description
queryString IDictionarystringstring

AuthorizationCodeResponseUrl(string)

public AuthorizationCodeResponseUrl(string query)

Constructs a new authorization code response URL from the specified query string.

Parameter
Name Description
query string

Properties

AdditionalParameters

public IDictionary<string, string> AdditionalParameters { get; }

Contains any extra parameters in the authorization code response URL query string.

Property Value
Type Description
IDictionarystringstring

Code

public string Code { get; set; }

Gets or sets the authorization code generated by the authorization server.

Property Value
Type Description
string

Error

public string Error { get; set; }

Gets or sets the error code (e.g. "invalid_request", "unauthorized_client", "access_denied", "unsupported_response_type", "invalid_scope", "server_error", "temporarily_unavailable") as specified in http://tools.ietf.org/html/rfc6749#section-4.1.2.1.

Property Value
Type Description
string

ErrorDescription

public string ErrorDescription { get; set; }

Gets or sets the human-readable text which provides additional information used to assist the client developer in understanding the error occurred.

Property Value
Type Description
string

ErrorUri

public string ErrorUri { get; set; }

Gets or sets the URI identifying a human-readable web page with provides information about the error.

Property Value
Type Description
string

State

public string State { get; set; }

Gets or sets the state parameter matching the state parameter in the authorization request.

Property Value
Type Description
string

Extension Method