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

    public class AuthorizationCodeRequestUrl : AuthorizationRequestUrl

OAuth 2.0 request URL for an authorization web page to allow the end user to authorize the application to
access their protected resources and that returns an authorization code, as specified in
<http://tools.ietf.org/html/rfc6749#section-4.1>.

## Inheritance

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

## Inherited Members

[AuthorizationRequestUrl.ResponseType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl#Google_Apis_Auth_OAuth2_Requests_AuthorizationRequestUrl_ResponseType) [AuthorizationRequestUrl.ClientId](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl#Google_Apis_Auth_OAuth2_Requests_AuthorizationRequestUrl_ClientId) [AuthorizationRequestUrl.RedirectUri](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl#Google_Apis_Auth_OAuth2_Requests_AuthorizationRequestUrl_RedirectUri) [AuthorizationRequestUrl.Scope](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl#Google_Apis_Auth_OAuth2_Requests_AuthorizationRequestUrl_Scope) [AuthorizationRequestUrl.State](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl#Google_Apis_Auth_OAuth2_Requests_AuthorizationRequestUrl_State) [AuthorizationRequestUrl.AuthorizationServerUrl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.AuthorizationRequestUrl#Google_Apis_Auth_OAuth2_Requests_AuthorizationRequestUrl_AuthorizationServerUrl) [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)

## Derived Types

[GoogleAuthorizationCodeRequestUrl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.Requests.GoogleAuthorizationCodeRequestUrl)

## 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

### AuthorizationCodeRequestUrl(Uri)

    public AuthorizationCodeRequestUrl(Uri authorizationServerUrl)

Constructs a new authorization code request with the specified URI and sets response_type to `code`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `authorizationServerUrl` | `https://learn.microsoft.com/dotnet/api/system.uri` |

## Methods

### Build()

    public Uri Build()

Creates a [Uri](https://learn.microsoft.com/dotnet/api/system.uri) which is used to request the authorization code.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.uri` |   |

## 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_)