Native Guard
Invalid Biometrics Settings 400
The realm's biometrics or step-up configuration is incomplete or inconsistent.
https://errors.swepay.com.br/native-guard/invalid-biometrics-settings What this means
Returned by the Admin API when a realm is created (POST /admin/v1/realms)
or updated (PUT /admin/v1/realms/{realmId}) with a biometrics block that
is enabled but incomplete or inconsistent. The realm is not created or
changed.
The rules are only enforced when biometrics.enabled is true (and, for the
nested block, when biometrics.stepUp.enabled is true) — a disabled block
may be partially filled. detail lists every violated rule, separated by
; .
Common causes
- 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`.
How to resolve
Fix every item listed in detail and send the request again. Retrying the
same body will keep returning 400. To save a configuration that is not
ready yet, send it with biometrics.enabled set to false.
error and errorDescription are deprecated compatibility members of the
Admin API; key your handling off type.
Example response
{
"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"
} References
Machine-readable: /native-guard/invalid-biometrics-settings.json