Duo Integration Setup

This Integration supports multiple instances

Check out the instructions to set up multiple instances here.

Overview

There are three different APIs provided by Duo and a key to initiate an individual user directory sync.

  1. 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.

  2. 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.

  3. 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.

Obtaining the Admin API Directory Key

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.

How to Obtain the Directory Key:

  1. Navigate to the Duo Admin Panel.

  2. Go to Users β†’ Directory Sync.

  3. 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.

Setting up the API accounts

  1. Create an Admin API by following the instructions here.

    • We will need the integration key, secret key, and API hostname.

  2. Create an Accounts API by following the instructions here.

    • We will need the integration key, secret key, and API hostname.

  3. Create an Auth API by following the instructions here.

    • We will need the integration key, secret key, and API hostname.

Configuring the Integration

  1. Log in to the Rewst platform.

  2. Go to the Configuration β†’ Integrations in the left sidebar.

  3. Complete the form by filling in the integration key, secret key, and API hostname from steps 1-3 under Setting up the API accounts.

  4. Map clients by doing one of the following:

    1. Click the Suggest Values.

    2. Select the company in the dropdown for duo_account_id property.

  5. 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.

Last updated