Duo integration setup
Last updated
Was this helpful?
Last updated
Was this helpful?
Our Duo integration enables the automation of multi-factor authentication tasks. Use the Duo API within Rewst workflows to perform actions such as managing users, phones, and bypass codes.
There are three different APIs provided by Duo, as well as a key to initiate an individual user directory sync.
Duo Admin API
This API allows administrators to manage their Duo accounts programmatically. With the Duo Admin API, administrators can create, update, and delete user accounts, manage two-factor authentication settings, and generate reports on user activity, among other tasks.
Duo Accounts API
The Accounts API lets customers programmatically create, delete, and manage individual Duo customer accounts. New Duo accounts created using the Accounts API are subaccounts of the account where the Accounts API application exists, creating a "parent" and "child" account relationship. A Duo account can have multiple child accounts, but a child account may only have one parent and no child accounts of its own.
Duo Auth API
This API allows developers to add two-factor authentication to their applications using Duo's authentication service. With the Duo Auth API, developers can authenticate users using Duo's two-factor authentication, retrieve information about users and their devices, and perform administrative tasks related to authentication, among other tasks.
After setting up the required API accounts (Admin, Accounts, and Auth APIs) and gathering their integration keys, secret keys, and hostnames, the next critical step is to retrieve the Admin API Directory Key for directory synchronization. This key is vital for mapping users accurately within Duo's directory sync configurations.
Log in to the Duo Admin Panel.
Navigate to Users > Directory Sync.
Select your configured directory to locate the Admin API Directory Key.
For all of the following, make sure to copy the designated information into a secure location. Once you migrate away from the page where it is displayed, you won't be able to view that information again.
We will need the integration key, secret key, and API hostname.
We will need the integration key, secret key, and API hostname.
We will need the integration key, secret key, and API hostname.
Navigate to Configuration > Integrations in the left side menu of your Rewst platform.
Click on the integration tile to launch the configuration setup page.
Under Parameters, enter the information you copied from Duo into its relevant field:
Auth Host: The Duo API server hostname
Auth Integration Key: The Duo API integration key
Auth Secret Key: The Duo secret key
Account Host: The Duo accounts server hostname
Accounts API Integration Key: The Duo accounts API integration key
Accounts API Secret Key: The Duo accounts secret key
Admin Host: The Duo API server hostname
Admin Integration Key: The Duo admin API integration key
Admin Secret Key: The Duo admin secret key
Click Save Configuration.
Apply the Admin API Directory Key under Setting up the API accounts
for each organization in the duo_admin_api_directory_key
field.
Create an Admin API by following the instructions .
Create an Accounts API by following the instructions .
Create an Auth API by following the instructions .
Search for Duo
in the integrations page.
Rewst will do a quick validation of your input. Once completed, you'll see a new section beneath the configuration form for. Complete your mapping as desired.
Got an idea for a new Integration? Rewst is constantly adding new integrations to our integrations page. Submit your idea or upvote existing ideas here in our .