{
  "type": "https://errors.swepay.com.br/native-guard/step-up-challenge-required",
  "service": "native-guard",
  "slug": "step-up-challenge-required",
  "httpStatus": 401,
  "title": "Step-Up Authentication Required",
  "summary": "The login is on hold until the user completes a face verification.",
  "description": "Returned by the Native Guard sign-in, token and refresh endpoints when the\ncredentials were accepted but the login needs a stronger proof before\ntokens are issued. It is a challenge, not a failure: no tokens or\nauthorization code were issued yet.\n\nThe response follows RFC 9470. It carries a `WWW-Authenticate: Bearer`\nheader with `error=\"insufficient_user_authentication\"` and the required\n`acr_values`, and the body adds three members: `challengeId`,\n`expiresInSeconds` and `acrValues`. Each challenged request creates a new\nsingle-use challenge.\n",
  "commonCauses": [
    "A risk rule configured for the realm matched this login.",
    "The client asked for face-level authentication through `acr_values`.",
    "The session's last face verification is older than the freshness window requested by the client (`max_age`) or set by the realm."
  ],
  "clientAction": "Do not resend the original request — that only creates another challenge.\nInstead, complete this one:\n\n1. Run a biometric (face) verification for the same user with purpose\n   `Challenge`.\n2. Send `POST /identity/v1/realms/{realm}/stepup/biometric` with the\n   `challengeId` and the resulting `assertion`, before `expiresInSeconds`\n   elapses.\n\nOn success that call finishes the login — it returns the tokens, or the\nauthorization-code redirect, depending on how the login was started. A\nchallenge can be attempted once: if the completion call fails or the\nchallenge expires, start the login again to get a new one.\n",
  "exampleResponse": {
    "type": "https://errors.swepay.com.br/native-guard/step-up-challenge-required",
    "title": "Step-Up Authentication Required",
    "status": 401,
    "detail": "Face verification required to complete this login.",
    "traceId": "Root=1-00000000-000000000000000000000000;Parent=0000000000000000;Sampled=0",
    "challengeId": "00000000-0000-0000-0000-000000000000",
    "expiresInSeconds": 300,
    "acrValues": "urn:swepay:acr:face"
  },
  "relatedDocs": [
    {
      "label": "RFC 9457 — Problem Details",
      "url": "https://www.rfc-editor.org/rfc/rfc9457"
    },
    {
      "label": "RFC 9470 — OAuth 2.0 Step Up Authentication Challenge Protocol",
      "url": "https://www.rfc-editor.org/rfc/rfc9470"
    }
  ],
  "category": "service",
  "deprecated": false,
  "documentation": "https://errors.swepay.com.br/native-guard/step-up-challenge-required"
}