# Identity-Aware Proxy V1 API - Class Google::Cloud::Iap::V1::WorkforceIdentitySettings (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.1 1.3.1 1.2.0 1.1.0 1.0.1 0.12.0 0.11.2 0.10.1 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Identity-Aware Proxy V1 API class Google::Cloud::Iap::V1::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #oauth2

    def oauth2() -> ::Google::Cloud::Iap::V1::OAuth2

**Returns**

- ([::Google::Cloud::Iap::V1::OAuth2](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iap-v1/latest/Google-Cloud-Iap-V1-OAuth2)) --- OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity federation services.

### #oauth2=

    def oauth2=(value) -> ::Google::Cloud::Iap::V1::OAuth2

**Parameter**

- **value** ([::Google::Cloud::Iap::V1::OAuth2](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iap-v1/latest/Google-Cloud-Iap-V1-OAuth2)) --- OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity federation services.
**Returns**

- ([::Google::Cloud::Iap::V1::OAuth2](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iap-v1/latest/Google-Cloud-Iap-V1-OAuth2)) --- OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity federation services.

### #workforce_pools

    def workforce_pools() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- The workforce pool resources. Only one workforce pool is accepted.

### #workforce_pools=

    def workforce_pools=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- The workforce pool resources. Only one workforce pool is accepted.
**Returns**

- (::Array\<::String\>) --- The workforce pool resources. Only one workforce pool is accepted.