A simple Node.js web application that serves a logon page integrated with Duo 2FA.
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
-
Copy the Client ID, Client Secret, and API Hostname values for your Web SDK application into
src/config.js
-
Start the application
npm run start
-
Navigate to http://localhost:3000
-
Log in with enrolled Duo user (any password will work, example doesn't verify first authentication step)