This library allows a web developer to quickly add Duo's interactive, self-service, two-factor authentication to any .NET web login form.
See our developer documentation at https://www.duosecurity.com/docs/duoweb for guidance on integrating Duo 2FA into your web application.
What's here:
DuoUniversal
- The Duo SDK for interacting with the Duo Universal PromptDuoUniversal.Example
- An example web application with Duo integratedThe example application has a dedicated README with further instructions on how to build and run it.
This library requires .NET Core 3.1 or higher, or .NET Framework 4.7.1 or higher
The library is available on NuGet at https://www.nuget.org/packages/DuoUniversal/1.2.5
Include it in your .NET project with:
dotnet add package DuoUniversal --version 1.2.5
Duo_universal_csharp uses the .NET libraries for TLS operations. .NET 4.7 or later is required for TLS 1.2; .NET 4.8 or later is required for TLS 1.3.
Run dotnet build
to generate the assemblies.
The tests require .NET Core 6.0.
From the root directory run:
dotnet test
Check the code format with:
dotnet format --verify-no-changes
Please report any bugs, feature requests, or issues to us directly at support@duosecurity.com.
Thank you for using Duo!