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

    public static class GoogleAuthConsts

Google OAuth2 constants.
Canonical source for these URLs is: <https://accounts.google.com/.well-known/openid-configuration>

## Inheritance

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

## 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](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2)

## Assembly

Google.Apis.Auth.dll

## Fields

### ApprovalUrl

    public const string ApprovalUrl = "https://accounts.google.com/o/oauth2/approval"

The approval URL (used in the Windows solution as a callback).

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

### AuthorizationUrl

    public const string AuthorizationUrl = "https://accounts.google.com/o/oauth2/auth"

The authorization code server URL.

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

### ComputeTokenUrl

    public const string ComputeTokenUrl = "http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token"

The Compute Engine authorization token server URL

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

**Remarks** IP address instead of name to avoid DNS resolution

### IapKeySetUrl

    public const string IapKeySetUrl = "https://www.gstatic.com/iap/verify/public_key-jwk"

The IAP Json Web Key Set (jwks) URL.

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

### JsonWebKeySetUrl

    public const string JsonWebKeySetUrl = "https://www.googleapis.com/oauth2/v3/certs"

The OpenID Connect Json Web Key Set (jwks) URL.

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

### LocalhostRedirectUri

    public const string LocalhostRedirectUri = "http://localhost"

Installed application localhost redirect URI.

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

### OidcAuthorizationUrl

    public const string OidcAuthorizationUrl = "https://accounts.google.com/o/oauth2/v2/auth"

The OpenID Connect authorization code server URL.

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

**Remarks** Use of this [OidcAuthorizationUrl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.GoogleAuthConsts#Google_Apis_Auth_OAuth2_GoogleAuthConsts_OidcAuthorizationUrl) is not 100% compatible with using
[AuthorizationUrl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.GoogleAuthConsts#Google_Apis_Auth_OAuth2_GoogleAuthConsts_AuthorizationUrl), so they are two distinct URLs.
Internally within this library only this more up-to-date [OidcAuthorizationUrl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.GoogleAuthConsts#Google_Apis_Auth_OAuth2_GoogleAuthConsts_OidcAuthorizationUrl) is used.

### OidcTokenUrl

    public const string OidcTokenUrl = "https://oauth2.googleapis.com/token"

The OpenID Connect authorization token server URL.

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

**Remarks** Use of this [OidcTokenUrl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.GoogleAuthConsts#Google_Apis_Auth_OAuth2_GoogleAuthConsts_OidcTokenUrl) is not 100% compatible with using
[TokenUrl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.GoogleAuthConsts#Google_Apis_Auth_OAuth2_GoogleAuthConsts_TokenUrl), so they are two distinct URLs.
Internally within this library only this more up-to-date [OidcTokenUrl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.OAuth2.GoogleAuthConsts#Google_Apis_Auth_OAuth2_GoogleAuthConsts_OidcTokenUrl) is used.

### QuotaProjectEnvironmentVariable

    public const string QuotaProjectEnvironmentVariable = "GOOGLE_CLOUD_QUOTA_PROJECT"

Name of the environment variable that will be checked for an ambient quota project ID.
If set, this value will be applied to Application Default Credentials.

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

### RevokeTokenUrl

    public const string RevokeTokenUrl = "https://oauth2.googleapis.com/revoke"

The path to the Google revocation endpoint.

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

### TokenUrl

    public const string TokenUrl = "https://accounts.google.com/o/oauth2/token"

The authorization token server URL.

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