swepayError Catalog

Native Guard

Step-Up Authentication Required 401

The login is on hold until the user completes a face verification.

type https://errors.swepay.com.br/native-guard/step-up-challenge-required

What this means

Returned by the Native Guard sign-in, token and refresh endpoints when the credentials were accepted but the login needs a stronger proof before tokens are issued. It is a challenge, not a failure: no tokens or authorization code were issued yet.

The response follows RFC 9470. It carries a WWW-Authenticate: Bearer header with error="insufficient_user_authentication" and the required acr_values, and the body adds three members: challengeId, expiresInSeconds and acrValues. Each challenged request creates a new single-use challenge.

Common causes

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

How to resolve

Do not resend the original request — that only creates another challenge. Instead, complete this one:

  1. Run a biometric (face) verification for the same user with purpose Challenge.
  2. Send POST /identity/v1/realms/{realm}/stepup/biometric with the challengeId and the resulting assertion, before expiresInSeconds elapses.

On success that call finishes the login — it returns the tokens, or the authorization-code redirect, depending on how the login was started. A challenge can be attempted once: if the completion call fails or the challenge expires, start the login again to get a new one.

Example response

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

References

Machine-readable: /native-guard/step-up-challenge-required.json