{
  "type": "https://errors.swepay.com.br/native-guard/step-up-purpose-mismatch",
  "service": "native-guard",
  "slug": "step-up-purpose-mismatch",
  "httpStatus": 400,
  "title": "Assertion Purpose Mismatch",
  "summary": "The biometric assertion was not issued for a step-up challenge.",
  "description": "Returned by `POST /identity/v1/realms/{realm}/stepup/biometric` when the\nassertion is authentic but does not authorize step-up: it was issued for a\npurpose other than `Challenge`, or the realm does not allow that purpose.\nThe login is not completed.\n\nThe challenge is consumed by this attempt.\n",
  "commonCauses": [
    "The biometric verification was requested with purpose `Recovery` instead of `Challenge`.",
    "The client reuses one verification flow for both recovery and step-up without setting the purpose.",
    "The realm's `biometrics.allowedPurposes` no longer includes `Challenge`."
  ],
  "clientAction": "Not retryable as sent: the `challengeId` cannot be used again, and this\nassertion will not be accepted for step-up. Start the login again to receive\na new challenge, request a biometric verification with purpose `Challenge`,\nand submit that assertion.\n\nIf assertions issued with purpose `Challenge` are still rejected, the realm\nadministrator must add `Challenge` to the realm's\n`biometrics.allowedPurposes`.\n",
  "exampleResponse": {
    "type": "https://errors.swepay.com.br/native-guard/step-up-purpose-mismatch",
    "title": "Assertion Purpose Mismatch",
    "status": 400,
    "detail": "The assertion's purpose does not authorize step-up (expected 'Challenge').",
    "traceId": "Root=1-00000000-000000000000000000000000;Parent=0000000000000000;Sampled=0"
  },
  "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-purpose-mismatch"
}