Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 664 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 664 Bytes

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)