What the person is doing
The user has completed or started a primary sign-in step, returned from SSO, triggered a risk rule, opened a new device, or started a sensitive action.
Application · lesson 12 of 23 · Task And Workflow Patterns
Underlying principle: A workflow joins actions across time, people, and systems. Each step gives the person enough context to continue, review, pause, or recover.
Provide a bounded additional-factor challenge that names the protected action, supports the enrolled factor, gives safe resend and retry states, offers enrolled alternatives and recovery codes, prevents bypass, explains trusted-device scope, protects factor changes, and returns users to the original task after successful verification.
A workflow joins actions across time, people, and systems. Each step gives the person enough context to continue, review, pause, or recover.
The user has completed or started a primary sign-in step, returned from SSO, triggered a risk rule, opened a new device, or started a sensitive action.
Provide a bounded additional-factor challenge that names the protected action, supports the enrolled factor, gives safe resend and retry states, offers enrolled alternatives and recovery codes, prevents bypass, explains trusted-device scope, protects factor changes, and returns users to the original task after successful verification.
Initial additional-factor challenge with factor name, destination or protected action, and primary account context.
Which second factor is required here, and why is it being requested for this destination or action?
The challenge appears only when the server requires additional verification and the protected action remains blocked until success.
The user has completed or started a primary sign-in step, returned from SSO, triggered a risk rule, opened a new device, or started a sensitive action.
Open the working example, try its controls, and compare the behavior against the decision guidance.
The user has completed or started a primary sign-in step, returned from SSO, triggered a risk rule, opened a new device, or started a sensitive action.
Provide a bounded additional-factor challenge that names the protected action, supports the enrolled factor, gives safe resend and retry states, offers enrolled alternatives and recovery codes, prevents bypass, explains trusted-device scope, protects factor changes, and returns users to the original task after successful verification.
Initial additional-factor challenge with factor name, destination or protected action, and primary account context.
Attackers bypass the prompt through a direct endpoint, cached page, or remembered browser weakness.
Support paste into one field for codes and avoid multi-field inputs that trap focus or break screen-reader reading order.
OWASP Cheat Sheet Series - checked
OWASP supports MFA factor choices, recovery codes, lost-factor recovery, remember-device controls, risk-based prompts, factor change protection, and notifications.
OWASP Web Security Testing Guide - checked
OWASP WSTG supports MFA bypass testing, brute-force protection, recovery-code strength, single-use behavior, notifications, and MFA settings management.
National Institute of Standards and Technology - checked
NIST supports authentication assurance, MFA options, phishing-resistant authenticators, protected channels, authenticator lifecycle, and customer-experience considerations.
MDN Web Docs - checked
MDN documents one-time-code autocomplete for additional-factor code entry.
WHATWG - checked
The HTML Standard supports one-time-code and webauthn autocomplete behavior for authentication flows.
Source trail checked: