# Class AuthorizationCodeTokenRequest (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.Requests.AuthorizationCodeTokenRequest)
- [1.69.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.69.0/Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeTokenRequest)
- [1.68.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeTokenRequest)
- [1.60.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeTokenRequest)
- [1.59.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeTokenRequest)
- [1.55.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeTokenRequest)
- [1.50.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeTokenRequest)

    public class AuthorizationCodeTokenRequest : TokenRequest

OAuth 2.0 request for an access token using an authorization code as specified in
<http://tools.ietf.org/html/rfc6749#section-4.1.3>.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [TokenRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.TokenRequest) \> AuthorizationCodeTokenRequest

## Inherited Members

[TokenRequest.Scope](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.TokenRequest#Google_Apis_Auth_OAuth2_Requests_TokenRequest_Scope) [TokenRequest.GrantType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.TokenRequest#Google_Apis_Auth_OAuth2_Requests_TokenRequest_GrantType) [TokenRequest.ClientId](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.TokenRequest#Google_Apis_Auth_OAuth2_Requests_TokenRequest_ClientId) [TokenRequest.ClientSecret](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.TokenRequest#Google_Apis_Auth_OAuth2_Requests_TokenRequest_ClientSecret) [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.Requests](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests)

## Assembly

Google.Apis.Auth.dll

## Constructors

### AuthorizationCodeTokenRequest()

    public AuthorizationCodeTokenRequest()

Constructs a new authorization code token request and sets grant_type to `authorization_code`.

## Properties

### Code

    [RequestParameter("code")]
    public string Code { get; set; }

Gets or sets the authorization code received from the authorization server.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### CodeVerifier

    [RequestParameter("code_verifier")]
    public string CodeVerifier { get; set; }

Gets or sets the code verifier matching the code challenge in the authorization request.
See <https://developers.google.com/identity/protocols/oauth2/native-app#exchange-authorization-code>
for more information.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### RedirectUri

    [RequestParameter("redirect_uri")]
    public string RedirectUri { get; set; }

Gets or sets the redirect URI parameter matching the redirect URI parameter in the authorization request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

## Extension Methods

[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_) [TokenRequestExtenstions.ExecuteAsync(TokenRequest, HttpClient, string, CancellationToken, IClock)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.TokenRequestExtenstions#Google_Apis_Auth_OAuth2_Requests_TokenRequestExtenstions_ExecuteAsync_Google_Apis_Auth_OAuth2_Requests_TokenRequest_System_Net_Http_HttpClient_System_String_System_Threading_CancellationToken_Google_Apis_Util_IClock_)