# Cloud Identity-Aware Proxy v1 API - Class OAuthSettings (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

    public sealed class OAuthSettings : IMessage<OAuthSettings>, IEquatable<OAuthSettings>, IDeepCloneable<OAuthSettings>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Identity-Aware Proxy v1 API class OAuthSettings.

Configuration for OAuth login\&consent flow behavior as well as for OAuth
Credentials.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[OAuthSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.OAuthSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[OAuthSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.OAuthSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[OAuthSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.OAuthSettings), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Iap.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1)

## Assembly

Google.Cloud.Iap.V1.dll

## Constructors

### OAuthSettings()

    public OAuthSettings()

### OAuthSettings(OAuthSettings)

    public OAuthSettings(OAuthSettings other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.OAuthSettings` |

## Properties

### ClientId

    public string ClientId { get; set; }

Optional. OAuth 2.0 client ID used in the OAuth flow.
This allows for client sharing. The risks of client sharing
are outlined here:
<https://cloud.google.com/iap/docs/sharing-oauth-clients#risks>.

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

### ClientSecret

    public string ClientSecret { get; set; }

Optional. Input only. OAuth secret paired with client ID.

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

### ClientSecretSha256

    public string ClientSecretSha256 { get; set; }

Output only. OAuth secret SHA256 paired with client ID.

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

### LoginHint

    public string LoginHint { get; set; }

Domain hint to send as hd=? parameter in OAuth request flow. Enables
redirect to primary IDP by skipping Google's login screen.
<https://developers.google.com/identity/protocols/OpenIDConnect#hd-param>
Note: IAP does not verify that the id token's hd claim matches this value
since access behavior is managed by IAM policies.

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

### ProgrammaticClients

    public RepeatedField<string> ProgrammaticClients { get; }

Optional. List of client ids allowed to use IAP programmatically.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |