Duo Integration Setup
Last updated
Last updated
Feedback
⬆️ CannyCopyright © 2024 Rewst
This Integration supports multiple instances
Check out the instructions to set up multiple instances here.
There are three different APIs provided by Duo and 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.
Navigate to the Duo Admin Panel.
Go to Users → Directory Sync.
Select your configured directory to locate the Admin API Directory Key
Important notes about the Directory Key:
Manual Retrieval: This key must be manually retrieved from the Duo Admin Panel as it cannot be fetched programmatically via the API.
Conditional Use: The duo_admin_api_directory_key
is necessary only for configurations that employ directory sync. Its usage is specific to ensuring precise user-directory mapping for each organization.
Create an Admin API by following the instructions here.
We will need the integration key, secret key, and API hostname.
Create an Accounts API by following the instructions here.
We will need the integration key, secret key, and API hostname.
Create an Auth API by following the instructions here.
We will need the integration key, secret key, and API hostname.
Log in to the Rewst platform.
Go to the Configuration → Integrations in the left sidebar.
Complete the form by filling in the integration key, secret key, and API hostname from steps 1-3 under Setting up the API accounts
.
Map clients by doing one of the following:
Click the Suggest Values.
Select the company in the dropdown for duo_account_id property.
Apply the Admin API Directory Key from step 4 under Setting up the API accounts
for each organization in the duo_admin_api_directory_key
field.