{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-identity-platform/json-schema/google-identity-platform-google-cloud-identitytoolkit-admin-v2-oauth-idp-config-schema.json",
  "title": "GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
  "description": "Configuration options for authenticating with an OAuth IDP.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-identity-platform-projects-api-openapi.yml#/components/schemas/GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig",
  "properties": {
    "responseType": {
      "$ref": "#/$defs/GoogleCloudIdentitytoolkitAdminV2OAuthResponseType",
      "description": "The response type to request for in the OAuth authorization flow. You can set either `id_token` or `code` to true, but not both. Setting both types to be simultaneously true (`{code: true, id_token: true}`) is not yet supported."
    },
    "displayName": {
      "type": "string",
      "description": "The config's display name set by developers."
    },
    "clientSecret": {
      "type": "string",
      "description": "The client secret of the OAuth client, to enable OIDC code flow."
    },
    "issuer": {
      "description": "For OIDC Idps, the issuer identifier.",
      "type": "string"
    },
    "enabled": {
      "description": "True if allows the user to sign in with the provider.",
      "type": "boolean"
    },
    "clientId": {
      "description": "The client id of an OAuth client.",
      "type": "string"
    },
    "name": {
      "description": "The name of the OAuthIdpConfig resource, for example: 'projects/my-awesome-project/oauthIdpConfigs/oauth-config-id'. Ignored during create requests.",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "GoogleCloudIdentitytoolkitAdminV2OAuthResponseType": {
      "type": "object",
      "description": "The response type to request for in the OAuth authorization flow. You can set either `id_token` or `code` to true, but not both. Setting both types to be simultaneously true (`{code: true, id_token: true}`) is not yet supported. See https://openid.net/specs/openid-connect-core-1_0.html#Authentication for a mapping of response type to OAuth 2.0 flow.",
      "properties": {
        "token": {
          "description": "Do not use. The `token` response type is not supported at the moment.",
          "type": "boolean",
          "deprecated": true
        },
        "idToken": {
          "description": "If true, ID token is returned from IdP's authorization endpoint.",
          "type": "boolean"
        },
        "code": {
          "description": "If true, authorization code is returned from IdP's authorization endpoint.",
          "type": "boolean"
        }
      }
    }
  }
}