Skip to content

TwoFactorEnrollment

TwoFactorEnrollment(): CustomDecorator<string>

Marks a route (or every route of a controller) as one an enrollment-only session may reach, under the two-factor plugin’s enforcement: the enrollment routes, and what a user needs on the way there (the factor’s status, re-authentication for a stale session, sign out). Every other route refuses such a session with 403 two_factor_enrollment_required. It opens nothing else: the route still needs a session, and its role and fresh-auth requirements still apply.

CustomDecorator<string>