{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-saml-configuration-xo-schema.json",
  "title": "SamlConfigurationXO",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-security-management-saml-api-openapi.yml#/components/schemas/SamlConfigurationXO",
  "required": [
    "idpMetadata",
    "usernameAttribute"
  ],
  "type": "object",
  "properties": {
    "entityId": {
      "type": "string",
      "description": "SAML Service Provider's unique identifying URI"
    },
    "idpMetadata": {
      "minLength": 1,
      "type": "string",
      "description": "SAML Identity Provider Metadata XML"
    },
    "usernameAttribute": {
      "minLength": 1,
      "type": "string",
      "description": "SAML attribute name for the username"
    },
    "firstNameAttribute": {
      "type": "string",
      "description": "SAML attribute name for the first name"
    },
    "lastNameAttribute": {
      "type": "string",
      "description": "SAML attribute name for the last name"
    },
    "emailAttribute": {
      "type": "string",
      "description": "SAML attribute name for email"
    },
    "groupsAttribute": {
      "type": "string",
      "description": "SAML attribute name for groups which maps the Identity Provider groups to a Nexus Repository Manager role"
    },
    "validateResponseSignature": {
      "type": "boolean",
      "description": "Validate signatures on responses from Identity Provider"
    },
    "validateAssertionSignature": {
      "type": "boolean",
      "description": "Validate signatures on assertions from Identity Provider"
    }
  }
}