[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Iap V1 Client - Class OAuth2 (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-iap/latest/V1.OAuth2)\n- [2.1.1](/php/docs/reference/cloud-iap/2.1.1/V1.OAuth2)\n- [2.0.3](/php/docs/reference/cloud-iap/2.0.3/V1.OAuth2)\n- [1.4.5](/php/docs/reference/cloud-iap/1.4.5/V1.OAuth2)\n- [1.3.4](/php/docs/reference/cloud-iap/1.3.4/V1.OAuth2)\n- [1.2.3](/php/docs/reference/cloud-iap/1.2.3/V1.OAuth2)\n- [1.1.1](/php/docs/reference/cloud-iap/1.1.1/V1.OAuth2)\n- [1.0.1](/php/docs/reference/cloud-iap/1.0.1/V1.OAuth2) \nReference documentation and code samples for the Google Cloud Iap V1 Client class OAuth2.\n\nThe OAuth 2.0 Settings\n\nGenerated from protobuf message `google.cloud.iap.v1.OAuth2`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Iap \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getClientId\n\nThe OAuth 2.0 client ID registered in the workforce identity federation\nOAuth 2.0 Server.\n\n### setClientId\n\nThe OAuth 2.0 client ID registered in the workforce identity federation\nOAuth 2.0 Server.\n\n### getClientSecret\n\nInput only. The OAuth 2.0 client secret created while registering the\nclient ID.\n\n### setClientSecret\n\nInput only. The OAuth 2.0 client secret created while registering the\nclient ID.\n\n### getClientSecretSha256\n\nOutput only. SHA256 hash value for the client secret. This field is\nreturned by IAP when the settings are retrieved.\n\n### setClientSecretSha256\n\nOutput only. SHA256 hash value for the client secret. This field is\nreturned by IAP when the settings are retrieved."]]