# Class AuthorizationCodeResponseUrl (1.73.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.73.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrl)
- [1.69.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.69.0/Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrl)
- [1.68.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrl)
- [1.60.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrl)
- [1.59.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrl)
- [1.55.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrl)
- [1.50.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrl)

    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](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrl#Google_Apis_Auth_OAuth2_Responses_AuthorizationCodeResponseUrl_Code) is not `null` or empty to verify the end-user granted authorization.

<br />

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AuthorizationCodeResponseUrl

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Apis.Auth.OAuth2.Responses](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/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` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2https://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |

### AuthorizationCodeResponseUrl(string)

    public AuthorizationCodeResponseUrl(string query)

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `query` | `https://learn.microsoft.com/dotnet/api/system.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** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2https://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Code

    public string Code { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.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** |
| `https://learn.microsoft.com/dotnet/api/system.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** |
| `https://learn.microsoft.com/dotnet/api/system.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** |
| `https://learn.microsoft.com/dotnet/api/system.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** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

## Extension Method

[Utilities.ThrowIfNull\<T\>(T, string)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.Utilities#Google_Apis_Util_Utilities_ThrowIfNull__1___0_System_String_)