# Google Cloud Iap V1 Client - Class WorkforceIdentitySettings (2.3.0)

2.3.0 (latest) 2.2.2 2.1.2 2.0.3 1.4.5 1.3.4 1.2.3 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Iap V1 Client class WorkforceIdentitySettings.

WorkforceIdentitySettings allows customers to configure workforce pools and
OAuth 2.0 settings to gate their applications using a third-party IdP with
access control.

Generated from protobuf message `google.cloud.iap.v1.WorkforceIdentitySettings`

## Namespace

Google \\ Cloud \\ Iap \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ workforce_pools` | `string[]` The workforce pool resources. Only one workforce pool is accepted. |
| `↳ oauth2` | `https://docs.cloud.google.com/php/docs/reference/cloud-iap/latest/V1.OAuth2` OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity federation services. |

### getWorkforcePools

The workforce pool resources. Only one workforce pool is accepted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setWorkforcePools

The workforce pool resources. Only one workforce pool is accepted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOauth2

OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity
federation services.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-iap/latest/V1.OAuth2|null` |   |

### hasOauth2

### clearOauth2

### setOauth2

OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity
federation services.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-iap/latest/V1.OAuth2` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |