{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/viridi-parente/main/json-schema/viridi-parente-security-settings-schema.json",
  "title": "SecuritySettings",
  "description": "A JSON value representing the Security Settings.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/viridi-parente-admin-controller-api-openapi.yml#/components/schemas/SecuritySettings",
  "properties": {
    "passwordPolicy": {
      "$ref": "#/$defs/UserPasswordPolicy",
      "description": "The user password policy object."
    },
    "maxFailedLoginAttempts": {
      "type": "integer",
      "format": "int32",
      "description": "Maximum number of failed login attempts allowed before user account is locked."
    },
    "userLockoutNotificationEmail": {
      "type": "string",
      "description": "Email to use for notifications about locked users."
    },
    "mobileSecretKeyLength": {
      "type": "integer",
      "format": "int32",
      "description": "Mobile secret key length"
    }
  },
  "$defs": {
    "UserPasswordPolicy": {
      "properties": {
        "minimumLength": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum number of symbols in the password."
        },
        "maximumLength": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum number of symbols in the password."
        },
        "minimumUppercaseLetters": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum number of uppercase letters in the password."
        },
        "minimumLowercaseLetters": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum number of lowercase letters in the password."
        },
        "minimumDigits": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum number of digits in the password."
        },
        "minimumSpecialCharacters": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum number of special in the password."
        },
        "allowWhitespaces": {
          "type": "boolean",
          "description": "Allow whitespaces"
        },
        "forceUserToResetPasswordIfNotValid": {
          "type": "boolean",
          "description": "Force user to update password if existing one does not pass validation"
        },
        "passwordExpirationPeriodDays": {
          "type": "integer",
          "format": "int32",
          "description": "Password expiration period (days). Force expiration of the password."
        },
        "passwordReuseFrequencyDays": {
          "type": "integer",
          "format": "int32",
          "description": "Password reuse frequency (days). Disallow to use the same password for the defined number of days"
        }
      }
    }
  }
}