Native Guard
User Mismatch 400
The biometric assertion does not belong to the user who is signing in.
https://errors.swepay.com.br/native-guard/step-up-user-mismatch What this means
Returned by POST /identity/v1/realms/{realm}/stepup/biometric when the
assertion was verified successfully, but the person it identifies is not the
user whose login raised the challenge. A challenge can only be completed by
the same user who started the login. The login is not completed.
Both the challenge and the assertion are consumed by this attempt.
Common causes
- 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`).
How to resolve
Not retryable as sent: neither the assertion nor the challengeId can be
used again. Start the login again to receive a new challenge, and make sure
the biometric verification is run for the same user who is signing in.
If this happens for every user of a realm, the realm administrator should
check that the identifier carried by the assertion matches the realm's
userRefClaimMapping (email, username or userId).
Example response
{
"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"
} References
Machine-readable: /native-guard/step-up-user-mismatch.json