Duo Universal Prompt C# Client

Build Status
Issues
Forks
Stars
License

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 Prompt
  • DuoUniversal.Example - An example web application with Duo integrated

The example application has a dedicated README with further instructions on how to build and run it.

Usage

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.1

Include it in your .NET project with:

dotnet add package DuoUniversal --version 1.2.1

TLS 1.2 and 1.3 Support

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.

Building with the .NET CLI

Run dotnet build to generate the assemblies.

Testing

The tests require .NET Core 6.0.

With the .NET CLI

From the root directory run:

dotnet test

Linting

With the .NET CLI

Check the code format with:

dotnet format --verify-no-changes

Support

Please report any bugs, feature requests, or issues to us directly at support@duosecurity.com.

Thank you for using Duo!

https://duo.com/

View code on GitHub
  • Owner

  • Contributors

    +2Github contributors
  • Categories

  • Products

    Duo
  • Programming Languages

    C#
  • License

    Other

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.