{
    "title": "IdentityService",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.security.identityservice.IdentityService",
    "type": "object",
    "required": [
        "identityServiceName",
        "serviceAuthenticationScheme"
    ],
    "properties": {
        "identityServiceType": {
            "javaType": "com.sos.joc.model.security.identityservice.IdentityServiceTypes",
            "type": "string",
            "enum": [
                "UNKNOWN",
                "KEYCLOAK",
                "KEYCLOAK-JOC",
                "LDAP",
                "LDAP-JOC",
                "OIDC",
                "OIDC-JOC",
                "FIDO",
                "JOC",
                "CERTIFICATE"
            ]
        },
        "identityServiceName": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "serviceAuthenticationScheme": {
            "javaType": "com.sos.joc.model.security.identityservice.IdentityServiceAuthenticationScheme",
            "type": "string",
            "enum": [
                "SINGLE-FACTOR",
                "TWO-FACTOR"
            ]
        },
        "ordering": {
            "type": "integer",
            "minimum": 0
        },
        "disabled": {
            "description": "controls if the object is disabled",
            "type": "boolean",
            "default": false
        },
        "secondFactor": {
            "description": "Identity Service is used as a second factor",
            "type": "boolean",
            "default": false
        },
        "secondFactorIdentityServiceName": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "required": {
            "description": "controls if the identity service is required",
            "type": "boolean",
            "default": false
        },
        "auditLog": {
            "javaType": "com.sos.joc.model.audit.AuditParams",
            "type": "object",
            "properties": {
                "comment": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "timeSpent": {
                    "type": "integer",
                    "minimum": 0
                },
                "ticketLink": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            }
        }
    },
    "additionalProperties": false
}