{
  "type": "https://errors.swepay.com.br/native-guard/step-up-user-mismatch",
  "service": "native-guard",
  "slug": "step-up-user-mismatch",
  "httpStatus": 400,
  "title": "User Mismatch",
  "summary": "The biometric assertion does not belong to the user who is signing in.",
  "description": "Returned by `POST /identity/v1/realms/{realm}/stepup/biometric` when the\nassertion was verified successfully, but the person it identifies is not the\nuser whose login raised the challenge. A challenge can only be completed by\nthe same user who started the login. The login is not completed.\n\nBoth the challenge and the assertion are consumed by this attempt.\n",
  "commonCauses": [
    "A different person performed the face verification.",
    "The verification was started for another account, for example on a shared device.",
    "The subject reference in the assertion uses a different kind of identifier than the realm is configured to match on (`biometrics.userRefClaimMapping`)."
  ],
  "clientAction": "Not retryable as sent: neither the assertion nor the `challengeId` can be\nused again. Start the login again to receive a new challenge, and make sure\nthe biometric verification is run for the same user who is signing in.\n\nIf this happens for every user of a realm, the realm administrator should\ncheck that the identifier carried by the assertion matches the realm's\n`userRefClaimMapping` (`email`, `username` or `userId`).\n",
  "exampleResponse": {
    "type": "https://errors.swepay.com.br/native-guard/step-up-user-mismatch",
    "title": "User Mismatch",
    "status": 400,
    "detail": "The biometric assertion does not belong to the user who raised this 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-user-mismatch"
}