NOTE: This library is no longer maintained.
PHP Library for easy integration with Duo Security's Two-Factor REST API
The Duo Security service provides easy integration with your current authentication methods to drop in two-factor authentication (cell phone or other device).
They have a "developer" plan that's free and allows for up to 10 users on the application/account.
Find out more here: http://duosecurity.com
REST documentation: https://www.duosecurity.com/docs/duorest
To create an application, you'll need to make an account with Duo Security. Once you're in you'll need to:
- Click on the "Integrations" item in the sidebar and click "New Application"
- For the Integration type, choose "REST API" and give it a name
- Once it's created, click on its name to get to the detail page. Here's where you'll find the keys you'll need to access the API (integration, secret and the API hostname)
Include in your composer.json
file:
{
"require": {
"enygma/duoauth": "2.*"
}
}
For more information on the functionality, see the wiki: https://github.com/enygma/duoauth/wiki/