{
  "$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-inbound-saml-config-schema.json",
  "title": "GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
  "description": "A pair of SAML RP-IDP configurations when the project acts as the relying party.",
  "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/GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig",
  "properties": {
    "displayName": {
      "description": "The config's display name set by developers.",
      "type": "string"
    },
    "spConfig": {
      "$ref": "#/$defs/GoogleCloudIdentitytoolkitAdminV2SpConfig",
      "description": "The SAML SP (Service Provider) configuration when the project acts as the relying party to receive and accept an authentication assertion issued by a SAML identity provider."
    },
    "idpConfig": {
      "$ref": "#/$defs/GoogleCloudIdentitytoolkitAdminV2IdpConfig",
      "description": "The SAML IdP (Identity Provider) configuration when the project acts as the relying party."
    },
    "enabled": {
      "description": "True if allows the user to sign in with the provider.",
      "type": "boolean"
    },
    "name": {
      "description": "The name of the InboundSamlConfig resource, for example: 'projects/my-awesome-project/inboundSamlConfigs/my-config-id'. Ignored during create requests.",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "GoogleCloudIdentitytoolkitAdminV2IdpCertificate": {
      "type": "object",
      "description": "The IDP's certificate data to verify the signature in the SAMLResponse issued by the IDP.",
      "properties": {
        "x509Certificate": {
          "description": "The x509 certificate",
          "type": "string"
        }
      }
    },
    "GoogleCloudIdentitytoolkitAdminV2IdpConfig": {
      "properties": {
        "idpCertificates": {
          "description": "IDP's public keys for verifying signature in the assertions.",
          "items": {
            "$ref": "#/$defs/GoogleCloudIdentitytoolkitAdminV2IdpCertificate"
          },
          "type": "array"
        },
        "ssoUrl": {
          "description": "URL to send Authentication request to.",
          "type": "string"
        },
        "idpEntityId": {
          "type": "string",
          "description": "Unique identifier for all SAML entities."
        },
        "signRequest": {
          "type": "boolean",
          "description": "Indicates if outbounding SAMLRequest should be signed."
        }
      },
      "description": "The SAML IdP (Identity Provider) configuration when the project acts as the relying party.",
      "type": "object"
    },
    "GoogleCloudIdentitytoolkitAdminV2SpCertificate": {
      "properties": {
        "expiresAt": {
          "type": "string",
          "format": "google-datetime",
          "description": "Timestamp of the cert expiration instance."
        },
        "x509Certificate": {
          "type": "string",
          "description": "Self-signed public certificate."
        }
      },
      "type": "object",
      "description": "The SP's certificate data for IDP to verify the SAMLRequest generated by the SP."
    },
    "GoogleCloudIdentitytoolkitAdminV2SpConfig": {
      "description": "The SAML SP (Service Provider) configuration when the project acts as the relying party to receive and accept an authentication assertion issued by a SAML identity provider.",
      "type": "object",
      "properties": {
        "spEntityId": {
          "type": "string",
          "description": "Unique identifier for all SAML entities."
        },
        "spCertificates": {
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/GoogleCloudIdentitytoolkitAdminV2SpCertificate"
          },
          "type": "array",
          "description": "Output only. Public certificates generated by the server to verify the signature in SAMLRequest in the SP-initiated flow."
        },
        "callbackUri": {
          "description": "Callback URI where responses from IDP are handled.",
          "type": "string"
        }
      }
    }
  }
}