Socket
Socket
Sign inDemoInstall

@duosecurity/duo_api

Package Overview
Dependencies
2
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @duosecurity/duo_api

Duo API SDK for Node.js applications


Version published
Maintainers
1
Install size
44.3 kB
Created

Readme

Source

Overview

Build Status

Auth - https://www.duosecurity.com/docs/authapi

Admin - https://www.duosecurity.com/docs/adminapi

Accounts - https://www.duosecurity.com/docs/accountsapi

Installing

Development:

$ git clone https://github.com/duosecurity/duo_api_nodejs.git
$ cd duo_api_nodejs
$ npm install

System:

$ npm install global @duosecurity/duo_api

Or run the following to add to your project:

$ npm install --save @duosecurity/duo_api

Using

$ node --interactive
> const duo_api = require('duo_api');
> const client = new duo_api.Client(ikey, skey, host);
> client.jsonApiCall('POST', '/auth/v2/preauth', { username: 'testuser' }, console.log);
> { response:
   { devices: [ [Object] ],
     result: 'auth',
     status_msg: 'Account is active' },
  stat: 'OK' }

Testing

$ npm run test
...
OK: 10 assertions (12ms)

Linting

$ npm run lint

> @duosecurity/duo_api@1.0.0 lint duo_api_nodejs
> eslint lib/ tests/

Support

Report any bugs, feature requests, etc. to us directly: support@duosecurity.com

Keywords

FAQs

Last updated on 12 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc