DuoSecurity.Auth.Http
A .NET HttpClient wrapper for interacting with the Duo Security Auth REST API.
Install / Use
/learn @orionstudt/DuoSecurity.Auth.HttpREADME
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
using var client = new DuoAuthClient(config);
// Make Requests..
Note that the client constructor has an overload that takes an HttpClient so that you may
use HTTP client injection when configuring your dependency pool.
All Endpoints Are Supported
| Endpoint | Method | |----------|----------------------| | /ping | PingAsync | | /check | CheckAsync | | /logo | LogoAsync | | /enroll | EnrollAsync | | /enroll_status | EnrollStatusAsync | | /preauth | PreAuthAsync | | /auth | AuthAsync | | /auth (async) | AuthWithPollingAsync | | /auth_status | AuthStatusAsync |
All Factors Are Supported
Factors are supported via derivations of the AuthRequest object.
The object(s) can be derived from to support new factors or customize parameters sent to the API.
The objects are:
AutoAuthRequestPushAuthRequestPasscodeAuthRequestPhoneAuthRequestSmsAuthRequest
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
