TwoFactorAuthDirectory 1.0.1

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

// Install TwoFactorAuthDirectory as a Cake Tool
#tool nuget:?package=TwoFactorAuthDirectory&version=1.0.1

NuGet Releases NuGet Releases Issues GitHub Donate GitHub Sponsors

KeeOtp2 is a simple NuGet package to determine which website supports which type of 2fa. Therefore it uses the twofactorauth API, which is provided by GitHub user 2factorauth. (They also have a frontend application, which you can find here.)


This guide is for Visual Studio only

  • Right-click on your project in the Solution Explorer
  • Select Manage NuGet Packages
  • Click Browse and search for TwoFactorAuthDirectory
  • Select the one by tiuub and install it


Fetching websites from API


TwoFactorAuthClient client = new TwoFactorAuthClient();

// Setting a custom API url (optional)
client.ApiUrl = "";

// Fetching websites from API asynchronously
List<Website> websites = client.FetchAsync().Result;

// Fetching websites from API synchronously
List<Website> websites = client.Fetch();




TwoFactorAuthClient client = new TwoFactorAuthClient();
List<Website> websites = client.Fetch();

// Find all websites which include "Google" in their name
List<Website> websitesByName = websites.FindByName("Google", ignoreCase: true);

// Find all websites which have the exact domain ""
List<Website> websitesByDomain = websites.FindByDomain("");

// Find all websites which have parts of the given url in their url field or in their additional_domains/domain field
List<Website> websitesByUrl = websites.FindByUrl("");

// Find all websites which supports a specific type of tfa
List<Website> websitesByTfa = websites.FindByTfa(TfaTypes.Totp | TfaTypes.Sms);

// Find all websites which are subjected by specific keywords
List<Website> websitesByKeywords = websites.FindByKeywords(new List<String>() { "email", "security" });

// Find all websites which are subjected by specific regions
List<Website> websitesByRegions = websites.FindByRegions(new List<String>() { "us", "de" });





Dependencie Source NuGet Author License
Newtonsoft.Json source NuGet newtonsoft MIT

Dependencies (TwoFactorAuthDirectoryTests)

Dependencie Source NuGet Author License
coverlet.collector source NuGet tonerdo MIT
Microsoft.NET.Test.Sdk source NuGet Microsoft MIT
MSTest.TestAdapter source NuGet Microsoft MIT
MSTest.TestFramework source NuGet Microsoft MIT
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
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.0.2 218 10/31/2022
1.0.1 234 9/26/2022
1.0.0 241 9/23/2022