# REST Resource: projects.tenants.oauthIdpConfigs

- [Resource: OAuthIdpConfig](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.tenants.oauthIdpConfigs#OAuthIdpConfig)
  - [JSON representation](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.tenants.oauthIdpConfigs#OAuthIdpConfig.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.tenants.oauthIdpConfigs#METHODS_SUMMARY)

## Resource: OAuthIdpConfig

Configuration options for authenticating with an OAuth IDP.

| JSON representation |
|---|
| ``` { "name": string, "clientId": string, "issuer": string, "displayName": string, "enabled": boolean, "clientSecret": string, "responseType": { object (`https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.oauthIdpConfigs#OAuthIdpConfig.OAuthResponseType`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the OAuthIdpConfig resource, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. Ignored during create requests. |
| `clientId` | `string` The client id of an OAuth client. |
| `issuer` | `string` For OIDC Idps, the issuer identifier. |
| `displayName` | `string` The config's display name set by developers. |
| `enabled` | `boolean` True if allows the user to sign in with the provider. |
| `clientSecret` | `string` The client secret of the OAuth client, to enable OIDC code flow. |
| `responseType` | ``object (`https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.oauthIdpConfigs#OAuthIdpConfig.OAuthResponseType`)`` The response type to request for in the OAuth authorization flow. You can set either `idToken` or `code` to true, but not both. Setting both types to be simultaneously true (`{code: true, idToken: true}`) is not yet supported. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.tenants.oauthIdpConfigs/create` | Create an Oidc Idp configuration for an Identity Toolkit project. |
| ### `https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.tenants.oauthIdpConfigs/delete` | Delete an Oidc Idp configuration for an Identity Toolkit project. |
| ### `https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.tenants.oauthIdpConfigs/get` | Retrieve an Oidc Idp configuration for an Identity Toolkit project. |
| ### `https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.tenants.oauthIdpConfigs/list` | List all Oidc Idp configurations for an Identity Toolkit project. |
| ### `https://docs.cloud.google.com/identity-platform/docs/reference/rest/v2/projects.tenants.oauthIdpConfigs/patch` | Update an Oidc Idp configuration for an Identity Toolkit project. |