Checks the authenticator or recovery code of the pending password sign-in with the attempt budget and lockout of the console challenge, then redirects to the Dex callback with a one-time code. When the organization requires a second factor the account does not have, method totp_setup confirms the authenticator app shown on the page and answers with the recovery codes and the link to the Dex callback.
Request body application/x-www-form-urlencoded
totprecovery_code totp_setup Marker of the sign-in the form was rendered for.
Authenticator app the setup form shows. Only with method totp_setup.
Responses
The second factor was set up: the page shows the recovery codes once and the link to the Dex callback with a one-time code, or asks to sign in again when the sign-in failed after the setup.
Redirect to Dex callback with code.
The code is empty or the request is invalid.
The code was not accepted (the form shows the attempts left), or the pending sign-in is missing, expired or out of attempts.
Access to the application or password sign-in was turned off during the sign-in.
The form belongs to a sign-in that a newer one in another tab replaced. No factor is checked, and the newer sign-in keeps its cookie and attempts.
Second-factor checks of the account are locked after repeated failures (the page names the retry time), verification is busy, or the request rate is exceeded (request.rate_limited).
Internal Server Error. After the factor was checked the page asks the user to sign in again (text/html).
Service Unavailable
Common errors: 413 504. They mean the same for every operation, see Errors.