Docs
Live demo

Show the second step of a Principal password sign-in

GET/api/v2/auth/dex/principal/login/mfa

Second step of a Principal password sign-in to a Dex application. The page reads the pending sign-in from the server through the HttpOnly challenge cookie and asks for an authenticator code or a recovery code. When the organization requires a second factor the account does not have, the page shows a QR code to set up an authenticator app.

Parameters

Query3 optional
methodstringquery

Factor to ask for. Recovery_code shows the recovery code form when codes remain.

totprecovery_code
attemptstringquery

Marker of the sign-in the page belongs to, set by the redirect and the page links. Without it the page shows the sign-in of the current cookie.

enrollmentstring · uuidquery

Authenticator app the setup page shows. The page adds it with a redirect, so a reload shows the QR code the user already scanned.

Responses

200

Second-factor form, or the Principal SSO link when the account has only a security key.

text/html

303

The setup page names the authenticator app it shows in its address (the enrollment parameter).

400

The request does not match the operation contract (request.invalid): a parameter or body field has the wrong type, format or value.

401

The pending sign-in is missing, expired or out of attempts. The user signs in again.

text/html

409

A newer sign-in started in another tab replaced the one this page belongs to. The newer sign-in stays usable.

text/html

429

Too many requests for the pending sign-in (request.rate_limited).

503

Service Unavailable

Common errors: 500 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close