punkTwoFactor 1.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package punkTwoFactor --version 1.0.5
NuGet\Install-Package punkTwoFactor -Version 1.0.5
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="punkTwoFactor" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add punkTwoFactor --version 1.0.5
#r "nuget: punkTwoFactor, 1.0.5"
#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 punkTwoFactor as a Cake Addin
#addin nuget:?package=punkTwoFactor&version=1.0.5

// Install punkTwoFactor as a Cake Tool
#tool nuget:?package=punkTwoFactor&version=1.0.5

punkTwoFactor

.github/workflows/release.yml

A simple Umbraco package that uses the documented implementation from Umbraco https://our.umbraco.com/documentation/Reference/Security/two-factor-authentication/#two-factor-authentication-for-users and adds some additional tweaks.

Nuget

Install-Package punkTwoFactor

https://www.nuget.org/packages/punkTwoFactor/

Installation

Add the following section to your appsettings.json:

"punkTwoFactor": {
    "ProviderName": "Two Factor Authentication",
    "Issuer": "Two Factor Authentication - Dev",
    "BackOfficeView": "..\\App_Plugins\\punkTwoFactor\\twoFactorProviderGoogleAuthenticator.html"
  }

Add the following code block within your ConfigureServices section above the Umbraco setup:

services.Configure<TwoFactorConfig>(_config.GetSection("punkTwoFactor"));
TwoFactorConfig twoFactorConfiguration = new();
_config.GetSection("punkTwoFactor").Bind(twoFactorConfiguration);

Now add the "AddBackOfficeTwoFactorAuthentication" extension to the Umbraco setup.

services
    .AddUmbraco(_env, _config)
    .AddBackOffice()
    .AddWebsite()
    .AddComposers()
    .AddServices()
    .AddNotifications()               
    .AddBackOfficeTwoFactorAuthentication(twoFactorConfiguration)
    .Build();

Compatibility

  • Umbraco 9.5+
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows 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
10.6.1 636 7/14/2023
10.4.4 1,507 3/17/2023
10.4.3 224 3/17/2023
10.4.2 310 1/25/2023
10.4.1 260 1/25/2023
10.1.1 488 8/24/2022
10.1.0 431 8/12/2022
1.0.5 479 6/15/2022
1.0.4 472 5/23/2022
1.0.3 432 5/23/2022
1.0.2 478 5/23/2022
1.0.1 424 5/23/2022
1.0.0 437 5/23/2022
0.0.9 458 5/23/2022
0.0.7 458 5/18/2022
0.0.6 465 5/18/2022
0.0.5 433 5/18/2022
0.0.4 459 5/18/2022
0.0.2 468 5/18/2022