DuoSecurity.Auth.Http 1.0.0-beta

This is a prerelease version of DuoSecurity.Auth.Http.
There is a newer version of this package available.
See the version list below for details.
Install-Package DuoSecurity.Auth.Http -Version 1.0.0-beta
dotnet add package DuoSecurity.Auth.Http --version 1.0.0-beta
<PackageReference Include="DuoSecurity.Auth.Http" Version="1.0.0-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DuoSecurity.Auth.Http --version 1.0.0-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DuoSecurity.Auth.Http, 1.0.0-beta"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install DuoSecurity.Auth.Http as a Cake Addin
#addin nuget:?package=DuoSecurity.Auth.Http&version=1.0.0-beta&prerelease

// Install DuoSecurity.Auth.Http as a Cake Tool
#tool nuget:?package=DuoSecurity.Auth.Http&version=1.0.0-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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 follow: Auto, Push, Passcode , Phone, or SMS.

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.1 1,885 3/2/2021
1.0.1-beta 701 7/14/2019
1.0.0 557 8/17/2020
1.0.0-beta 1,472 6/22/2018

Initial Publish - Pre-release.