{
  "type": "https://errors.swepay.com.br/native-guard/invalid-biometrics-settings",
  "service": "native-guard",
  "slug": "invalid-biometrics-settings",
  "httpStatus": 400,
  "title": "Invalid Biometrics Settings",
  "summary": "The realm's biometrics or step-up configuration is incomplete or inconsistent.",
  "description": "Returned by the Admin API when a realm is created (`POST /admin/v1/realms`)\nor updated (`PUT /admin/v1/realms/{realmId}`) with a `biometrics` block that\nis enabled but incomplete or inconsistent. The realm is not created or\nchanged.\n\nThe rules are only enforced when `biometrics.enabled` is `true` (and, for the\nnested block, when `biometrics.stepUp.enabled` is `true`) — a disabled block\nmay be partially filled. `detail` lists every violated rule, separated by\n`; `.\n",
  "commonCauses": [
    "The `biometrics.jwksUrl` or `biometrics.issuer` value is missing or is not an absolute `https` URL.",
    "The `biometrics.audience` value is missing, `maxAssertionAgeSeconds` is not greater than zero, or `userRefClaimMapping` is not one of `email`, `username`, `userId`.",
    "The `biometrics.allowedPurposes` list is empty, or step-up is enabled without `Challenge` in it.",
    "Step-up (`biometrics.stepUp`) is enabled without `biometrics.enabled`, without any rule, or with a non-positive `challengeTtlSeconds`."
  ],
  "clientAction": "Fix every item listed in `detail` and send the request again. Retrying the\nsame body will keep returning `400`. To save a configuration that is not\nready yet, send it with `biometrics.enabled` set to `false`.\n\n`error` and `errorDescription` are deprecated compatibility members of the\nAdmin API; key your handling off `type`.\n",
  "exampleResponse": {
    "type": "https://errors.swepay.com.br/native-guard/invalid-biometrics-settings",
    "title": "Invalid Biometrics Settings",
    "status": 400,
    "detail": "biometrics.jwksUrl is required when biometrics.enabled is true; biometrics.audience is required when biometrics.enabled is true",
    "traceId": "Root=1-00000000-000000000000000000000000;Parent=0000000000000000;Sampled=0",
    "error": "invalid_biometrics_settings",
    "errorDescription": "biometrics.jwksUrl is required when biometrics.enabled is true; biometrics.audience is required when biometrics.enabled is true"
  },
  "relatedDocs": [
    {
      "label": "RFC 9457 — Problem Details",
      "url": "https://www.rfc-editor.org/rfc/rfc9457"
    }
  ],
  "category": "service",
  "deprecated": false,
  "documentation": "https://errors.swepay.com.br/native-guard/invalid-biometrics-settings"
}