swepayError Catalog

Native Guard

Assertion Purpose Mismatch 400

The biometric assertion was not issued for a step-up challenge.

type https://errors.swepay.com.br/native-guard/step-up-purpose-mismatch

What this means

Returned by POST /identity/v1/realms/{realm}/stepup/biometric when the assertion is authentic but does not authorize step-up: it was issued for a purpose other than Challenge, or the realm does not allow that purpose. The login is not completed.

The challenge is consumed by this attempt.

Common causes

  • 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`.

How to resolve

Not retryable as sent: the challengeId cannot be used again, and this assertion will not be accepted for step-up. Start the login again to receive a new challenge, request a biometric verification with purpose Challenge, and submit that assertion.

If assertions issued with purpose Challenge are still rejected, the realm administrator must add Challenge to the realm's biometrics.allowedPurposes.

Example response

HTTP 400 · application/problem+json
{
  "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"
}

References

Machine-readable: /native-guard/step-up-purpose-mismatch.json