A simple package to add 2FA login to Umbraco backoffice users
$ dotnet add package Umbraco.Community.User2FAThis is a simple package designed for Umbraco V17+ that adds Two Factor Auth (2FA) login to Umbraco backoffice users.
This is based on an Umbraco Docs tutorial, howver I saw this tutorial as mostly plumbing of creating C# files in order to add 2FA and thus package is designed to help save you time in creating these files over and over again.
I have also verified this to work with 1Password Desktop App to save/store the 2FA QR code and generate the correct pin.
| Configuration Key | Description |
|---|---|
User2FA:AuthenticatorIssuerName | This is the name that will be displayed in the 2FA app when you scan the QR code, this is useful if you have multiple Umbraco sites and want to differentiate between them. |
{
...
"Umbraco": {
...
},
"User2FA": {
"AuthenticatorIssuerName": "My Awesome Website"
}
...
}
The example website project has a backoffice user account setup ready to have a 2FA account applied to it, you can login in with the following credentials.
| Username | Password |
|---|---|
| warren@hackmakedo.com | password1234 |
QR Code icons created by small.smiles - Flaticon
Lovingly crafted for you by Warren Buckley❤️
Available for hire