Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Duo Universal Node.js example

A simple Node.js web application that serves a logon page integrated with Duo 2FA.

Setup

Clone the repository

git clone https://github.com/duosecurity/duo_universal_nodejs.git

Navigate to example folder

cd duo_universal_nodejs/example

Install dependencies

npm install

Run the application

  1. Copy the Client ID, Client Secret, and API Hostname values for your Web SDK application into src/config.js

  2. Start the application

npm run start
  1. Navigate to http://localhost:3000

  2. Log in with enrolled Duo user (any password will work, example doesn't verify first authentication step)