U2 1.1.0

dotnet add package U2 --version 1.1.0
NuGet\Install-Package U2 -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="U2" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add U2 --version 1.1.0
#r "nuget: U2, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

  1. Install the U2 nuget package
  2. Add your issuer (a name people can use to remember your site by in their Authenticator App) to AppSettings
  3. 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

  1. 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.
  2. Umbraco 9 support.

Packaging

nuget pack u2.nuspec -version <version>

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 7,892 8/13/2021
1.0.2 293 5/21/2021
1.0.1 317 5/20/2021
1.0.0 324 5/13/2021

1.0.0 Initial release