Duosecurity Node Client
Quick Start
First:
npm install duo-api
Then:
var Client = ;
Then: Create a Client
.
Finally: Make a request.
Reporting Issues
Something not working? Found a bug? Got a question? Feature request? Open an issue and we'll get on it!
Development
We love contributions and will gladly accept yours! Here's how you can contribute:
- Fork the repo.
- Make your changes.
- Add tests as needed.
- Submit a pull request.
Testing
To run the tests on your local machine, create three environment variables:
DUO_API_HOST
: Duo api host.DUO_API_IKEY
: Duo api integration key.DUO_API_SKEY
: Duo api secret key.
After setting the environment variables, run gulp test
.
git clone git@github.com:BYU-OIT/node-duo-api.git # Or your own fork. cd node-duo-api/export DUO_API_HOST=api-XXXXXXXX.duosecurity.comexport DUO_API_IKEY=XXXXXXXXXXXXXXXXXXXXexport DUO_API_SKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXnpm install -g gulp # If you don't have gulp installed already. npm install # Install dependencies. gulp test
You can have gulp run the tests on any code change by running gulp watch
in the root of the repository.
Contributors
Thanks to the following awesome people for helping make this module better! =>