DuoSecurity.Auth.Http
1.0.0-beta
A .NET HttpClient wrapper for interacting with the Duo Security Auth REST API.
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" />
paket add DuoSecurity.Auth.Http --version 1.0.0-beta
#r "nuget: DuoSecurity.Auth.Http, 1.0.0-beta"
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.
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.
Release Notes
Initial Publish - Pre-release.
Dependencies
-
.NETStandard 2.0
- Newtonsoft.Json (>= 11.0.2)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.1 | 37 | 3/2/2021 |
1.0.1-beta | 421 | 7/14/2019 |
1.0.0 | 468 | 8/17/2020 |
1.0.0-beta | 1,291 | 6/22/2018 |