Skip to content

A .NET HttpClient wrapper for interacting with the Duo Security Auth REST API.

License

Notifications You must be signed in to change notification settings

m33p/DuoSecurity.Auth.Http

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DuoSecurity.Auth.Http

A .NET HttpClient wrapper for interacting with the Duo Security Auth REST API.

Installation

NuGet PM> Install-Package DuoSecurity.Auth.Http

Usage

Client Setup

using DuoSecurity.Auth.Http;

// Provide Config
var config = new DuoAuthConfig("api-XXXXXXXX.duosecurity.com", "integrationKey", "secretKey");

// Instantiate Client
var client = new DuoAuthClient(config);

All Endpoints Are Supported

Endpoint Method
/ping PingAsync
/check CheckAsync
/logo LogoAsync
/enroll EnrollAsync
/enroll_status EnrollStatusAsync
/preauth PreAuthBy{UserKey}Async
/auth Auth{Factor}By{UserKey}Async
/auth (async) Auth{Factor}By{UserKey}ForPollingAsync
/auth_status AuthStatusAsync

{UserKey} can be substituted for UserId or Username.

{Factor} can be substituted for one of the following: Auto, Push, Passcode , Phone, or SMS.

About

A .NET HttpClient wrapper for interacting with the Duo Security Auth REST API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%