U2 1.1.0
dotnet add package U2 --version 1.1.0
NuGet\Install-Package U2 -Version 1.1.0
<PackageReference Include="U2" Version="1.1.0" />
paket add U2 --version 1.1.0
#r "nuget: U2, 1.1.0"
// Install U2 as a Cake Addin #addin nuget:?package=U2&version=1.1.0 // Install U2 as a Cake Tool #tool nuget:?package=U2&version=1.1.0
U2
Umbraco 8 Two Factor Authentication
Enable two factor authentication using a TOTP authenticator app (ie Google Authenticator, Authy or Microsoft Authenticator)
Credits
Based on https://github.com/Dallas-msc/umbraco-2fa-with-google-authenticator/tree/master/YubiKey2Factor
Upgrading
If you are upgrading from a previous version, please update the version number in config/ClientDependency.config
Setup
- Install the U2 nuget package
- Add your issuer (a name people can use to remember your site by in their Authenticator App) to AppSettings
- Update you Owin startup file as per the Readme.txt
Usage
Once setup, you will see a new dashboard in the backoffice content section. Using your authenticator app of choice, scan the barcode, enter the verification code, hit enter. From now on your account will require a code from your authenticator app to login.
Locked Out
If you ever loose your authenticator app but you have access to the database, simply delete your user account from the U2UserSettings table in your Umbraco database.
Roadmap
- I plan to add another AppSetting to require two factor authentication. If set to true, any account that doesn't have 2FA configured will inform the user they must contact their administrator to setup two factor authentication. I will add a section for administrators to generate 2FA secret keys (and QR codes) for other users.
- Umbraco 9 support.
Packaging
nuget pack u2.nuspec -version <version>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- Otp.NET (>= 1.2.2 && < 1.99999999.0)
- UmbracoCms.IdentityExtensions (>= 2.0.0 && < 2.99999999.0)
- UmbracoCms.Web (>= 8.1.1 && < 8.99999999.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.0.0 Initial release