umbraco-security-2fa
Installation
SKILL.md
Two-factor authentication
Umbraco has two separate identity systems, and each gets 2FA its own way. Both use an
ITwoFactorProvider that you implement and register; what differs is the UI around it.
| A: Backoffice users | B: Website members | |
|---|---|---|
| Reference | users.md | members.md |
| Who signs in | Editors and admins at /umbraco |
Visitors on the public site |
| Registered on | BackOfficeIdentityBuilder |
MemberIdentityBuilder |
| UI you write | A JSON manifest; the backoffice supplies the screens | The login view's code step and a setup page |
How to decide
Settle which identity system the request is about before writing code: "editors", "admins", "backoffice" and "CMS login" mean A; "members", "customers", "my account" and "website login" mean B. If the user wants both, do both: they coexist. Open the reference for each one you build and start from its assets. The docs sample has mistakes that the references list and the assets fix.