# Identity-Aware Proxy V1 API - Class Google::Cloud::Iap::V1::OAuth2 (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::OAuth2.

The OAuth 2.0 Settings

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #client_id

    def client_id() -> ::String

**Returns**

- (::String) --- The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.

### #client_id=

    def client_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.
**Returns**

- (::String) --- The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.

### #client_secret

    def client_secret() -> ::String

**Returns**

- (::String) --- Input only. The OAuth 2.0 client secret created while registering the client ID.

### #client_secret=

    def client_secret=(value) -> ::String

**Parameter**

- **value** (::String) --- Input only. The OAuth 2.0 client secret created while registering the client ID.
**Returns**

- (::String) --- Input only. The OAuth 2.0 client secret created while registering the client ID.

### #client_secret_sha256

    def client_secret_sha256() -> ::String

**Returns**

- (::String) --- Output only. SHA256 hash value for the client secret. This field is returned by IAP when the settings are retrieved.