TwoFactorAuthDirectory 1.0.3
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.5
This package targets .NET Framework 4.5. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TwoFactorAuthDirectory --version 1.0.3
NuGet\Install-Package TwoFactorAuthDirectory -Version 1.0.3
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.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TwoFactorAuthDirectory --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TwoFactorAuthDirectory, 1.0.3"
#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.3 // Install TwoFactorAuthDirectory as a Cake Tool #tool nuget:?package=TwoFactorAuthDirectory&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TwoFactorAuthDirectory (related to 2fa.directory)
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.)
Installation
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
Usage
Fetching websites from API
...
TwoFactorAuthClient client = new TwoFactorAuthClient();
// Setting a custom API url (optional)
client.ApiUrl = "https://twofactorauth.tiuub.de/frozen/2022-07-06/api/v3/all.json";
// Fetching websites from API asynchronously
List<Website> websites = client.FetchAsync().Result;
// Fetching websites from API synchronously
List<Website> websites = client.Fetch();
...
Sorting
...
TwoFactorAuthClient client = new TwoFactorAuthClient();
List<Website> websites = client.Fetch();
// Find all websites which are supporting anything
List<Website> websitesByName = websites.FindAll(website => website.IsSupportingAny());
// Find all websites which are supporting TfyTypes.Totp or TfaTypes.Sms
List<Website> websitesByName = websites.FindAll(website => website.IsSupporting(TfaTypes.Totp | TfaTypes.Sms));
// 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 "mail.google.com"
List<Website> websitesByDomain = websites.FindByDomain("mail.google.com");
// 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("https://log:mein@samsung.com/test-path?test-parameter:123");
// 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" });
...
License
Dependencies
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 Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.5
- Newtonsoft.Json (>= 13.0.1)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.1)
-
.NETStandard 2.1
- Newtonsoft.Json (>= 13.0.1)
-
net6.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.