{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apptio/json-schema/apptio-domain-ssoconfigurations-schema.json",
  "title": "DomainSSOConfigurations",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apptio-frontdoor-api-openapi.yml#/components/schemas/DomainSSOConfigurations",
  "required": [
    "display_name",
    "domain_id",
    "id",
    "type"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "display_name": {
      "maxLength": 80,
      "minLength": 1,
      "type": "string"
    },
    "connection_name": {
      "type": "string"
    },
    "idp_initiated_url": {
      "type": "string"
    },
    "domain_id": {
      "type": "string",
      "format": "uuid"
    },
    "domain_name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "force_login": {
      "type": "boolean"
    },
    "active": {
      "type": "boolean"
    },
    "idp_init": {
      "type": "boolean"
    },
    "sp_init": {
      "type": "boolean"
    },
    "enabled_email_domains": {
      "uniqueItems": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "enabled_logins": {
      "uniqueItems": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "allowed_groups": {
      "uniqueItems": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "oidc_sso_configuration": {
      "$ref": "#/$defs/OIDCDomainSSOConfigurations"
    },
    "saml_sso_configuration": {
      "$ref": "#/$defs/SAMLDomainSSOConfigurations"
    },
    "username_suffix": {
      "maxLength": 80,
      "minLength": 0,
      "pattern": "^@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$",
      "type": "string"
    },
    "autoprovision": {
      "type": "boolean"
    },
    "autoprovision_users": {
      "type": "boolean"
    },
    "role_prefix": {
      "maxLength": 80,
      "minLength": 0,
      "type": "string"
    },
    "space_character": {
      "maxLength": 1,
      "minLength": 0,
      "type": "string"
    },
    "role_mapping": {
      "type": "object",
      "additionalProperties": {
        "uniqueItems": true,
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "fallback_roles": {
      "uniqueItems": true,
      "type": "array",
      "items": {
        "maxLength": 80,
        "minLength": 0,
        "type": "string"
      }
    },
    "persona_mapping": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "fallback_persona": {
      "maxLength": 80,
      "minLength": 0,
      "type": "string"
    },
    "cert_expiry_date": {
      "type": "string",
      "format": "date-time"
    },
    "encryption_cert_expiration": {
      "type": "string",
      "format": "date-time"
    },
    "test_url": {
      "type": "string"
    }
  },
  "$defs": {
    "OIDCDomainSSOConfigurations": {
      "required": [
        "client_id",
        "client_secret",
        "forward_prompt"
      ],
      "type": "object",
      "properties": {
        "wellknown_endpoint": {
          "type": "string"
        },
        "client_id": {
          "type": "string"
        },
        "client_secret": {
          "type": "string"
        },
        "forward_prompt": {
          "type": "boolean"
        },
        "client_secret_expiration": {
          "type": "string",
          "format": "date-time"
        },
        "field_map": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "pkce_support": {
          "type": "boolean"
        }
      }
    },
    "SAMLDomainSSOConfigurations": {
      "required": [
        "field_map",
        "metadata"
      ],
      "type": "object",
      "properties": {
        "signing_cert_expiration": {
          "type": "string",
          "format": "date-time"
        },
        "signing_cert_subject": {
          "type": "string"
        },
        "encryption_cert_expiration": {
          "type": "string",
          "format": "date-time"
        },
        "encryption_cert_subject": {
          "type": "string"
        },
        "metadata": {
          "type": "string"
        },
        "field_map": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "unique_id": {
          "maxLength": 16,
          "minLength": 0,
          "type": "string"
        }
      }
    }
  }
}