Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Duo Web JavaScript in ES6 Module for easy install

License

Notifications You must be signed in to change notification settings

vmware-archive/duo_web_sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

duo_web_sdk - Provides the Duo Web Javascript in an ES6 module format that can be installed via npm/yarn and bundled into your web application.

Installation

Install duo_web_sdk from Github:

  • With NPM: npm install https://github.com/duosecurity/duo_web_sdk.git --save
  • With yarn: yarn add https://github.com/duosecurity/duo_web_sdk.git

Usage

Basic usage would be importing this module and initializing the Duo Authentication Prompt with the signed request passed from the server. The user would authenticate using the prompt, and you would submit the signed response to your backend for verification.

import DuoWebSDK from 'duo_web_sdk';

DuoWebSDK.init({
  iframe: "duo-frame",
  host: host,
  sig_request: sigRequestPassedFromServer,
  submit_callback: someCallback,
});

See the examples folder for a full implementation using React and Express.

Documentation

General documentation on using Duo Web is available here.

About

Duo Web JavaScript in ES6 Module for easy install

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%