npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-duo

v1.3.0

Published

Duo Security multi-factor authentication community node for n8n

Downloads

1,852

Readme

n8n-nodes-duo

A Wetomate n8n community node for the Duo Security multi-factor authentication API. This package provides authentication, pre-authentication, status checks, availability checks, and human-in-the-loop approval directly within n8n workflows.

Prerequisites

  • n8n version 1.x or higher
  • Node.js v14+
  • Duo Security account with:
    • Integration Key
    • Secret Key
    • API Hostname (e.g., api-xxxxxxxx.duosecurity.com)

Installation

Install the community package from your n8n instance's Settings > Community Nodes page using:

n8n-nodes-duo

Credential setup

Create a new Duo credential in n8n with these fields:

  • Integration Key
  • Secret Key
  • API Hostname

Use this credential in all Duo node endpoints. See the Duo Auth API documentation for integration setup and endpoint details.

The package provides one Duo Security node for regular workflow connections and n8n AI Agents. Because the node is usable as a tool, n8n exposes it automatically through an ai_tool connection when it is attached to an AI workflow.

Example: expense reimbursement approval

The included Duo Expense Reimbursement Approval workflow starts with an n8n form. A manager receives a Duo Push containing the employee, expense, amount, and reference, and the workflow marks the expense approved only when Duo returns allow.

The example is inactive and has no credential references. Replace the example manager username and connect the approved branch to your finance or payroll system before enabling it. The Duo Push is a real authentication challenge.

The Duo Security Capability Showcase workflow demonstrates every Duo endpoint, synchronous and asynchronous push flows, status polling, and the Duo Security node connected as an AI tool. It has five independent Manual Trigger scenarios. Assign a Duo credential to the Duo nodes and configure the chat model before running it; the AUTH paths create real authentication challenges.

Supported endpoints

| Endpoint | Description | | ---------------------- | ------------------------------------------------------------------------------------------------------------- | | /auth/v2/auth | Starts second-factor authentication with a push notification, passcode, phone call, or SMS passcode delivery. | | /auth/v2/auth_status | Waits for the next status update from an asynchronous authentication transaction. | | /auth/v2/check | Verifies the Auth API integration, secret keys, and request signature. | | /auth/v2/logo | Retrieves the stored Duo logo. | | /auth/v2/ping | Checks whether the Duo Auth API is available without requiring a signed request. | | /auth/v2/preauth | Checks whether a user may authenticate and returns the authentication factors available to that user. |

Each operation accepts input parameters and returns JSON output.

Development and testing

When the repository Docker development environment starts, it imports the inactive Duo Security Capability Showcase and Duo Expense Reimbursement Approval sample workflows. The showcase demonstrates every Duo endpoint, synchronous and asynchronous push flows, status polling, and the regular node connected as an AI tool. The approval example starts with an expense form, sends contextual pushinfo in a synchronous Duo Push, and branches on the manager's decision; its usage notes are documented in duo-human-in-the-loop-approval.md. Both workflows intentionally omit credentials. Create or select a Duo credential and use test users before running them; the push steps have a real effect.

From the repository root, install the locked dependencies and run the Duo package checks with:

npm ci
npm run build --workspace n8n-nodes-duo
npm run lint --workspace n8n-nodes-duo
npm test --workspace n8n-nodes-duo

Linting

Linting helps ensure code quality, consistency, and prevents common errors.
This project uses ESLint (and optionally Prettier for formatting) to maintain a consistent code style.

Run the linter

npm run lint

Run Prettier

npm run format

Contributing

Issues and pull requests are welcome! Please ensure code follows linting and testing standards before submitting.

License

MIT