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

    public class 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, as specified in <http://tools.ietf.org/html/rfc6749#section-3.1>.

## Inheritance

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

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

## Derived Types

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

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

### AuthorizationRequestUrl(Uri)

    public AuthorizationRequestUrl(Uri authorizationServerUrl)

Constructs a new authorization request with the specified URI.

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

## Properties

### AuthorizationServerUrl

    public Uri AuthorizationServerUrl { get; }

Gets the authorization server URI.

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

### ClientId

    [RequestParameter("client_id", RequestParameterType.Query)]
    public string ClientId { get; set; }

Gets or sets the client identifier.

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

### RedirectUri

    [RequestParameter("redirect_uri", RequestParameterType.Query)]
    public string RedirectUri { get; set; }

Gets or sets the URI that the authorization server directs the resource owner's user-agent back to the
client after a successful authorization grant, as specified in
<http://tools.ietf.org/html/rfc6749#section-3.1.2> or `null` for none.

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

### ResponseType

    [RequestParameter("response_type", RequestParameterType.Query)]
    public string ResponseType { get; set; }

Gets or sets the response type which must be `code` for requesting an authorization code or
`token` for requesting an access token (implicit grant), or space separated registered extension
values. See <http://tools.ietf.org/html/rfc6749#section-3.1.1> for more details

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

### Scope

    [RequestParameter("scope", RequestParameterType.Query)]
    public string Scope { get; set; }

Gets or sets space-separated list of scopes, as specified in <http://tools.ietf.org/html/rfc6749#section-3.3>
or `null` for none.

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

### State

    [RequestParameter("state", RequestParameterType.Query)]
    public string State { get; set; }

Gets or sets the state (an opaque value used by the client to maintain state between the request and
callback, as mentioned in <http://tools.ietf.org/html/rfc6749#section-3.1.2.2> or `null` for none.

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