Skip to content
Browse Gluu Server 4.5

Release

Duo Security

#Overview

Duo Security is a SaaS authentication provider. This document will explain how to use Gluu's Duo interception script to configure the Gluu Server for a two-step authentication process with username and password as the first step, and Duo as the second step.

In order to use this authentication mechanism your organization will need a Duo account and users will need to download the Duo mobile app.

#Prerequisites

#Properties

There are a few properties in the Duo Security authentication script:

PropertyStatusDescriptionExample
duo_creds_fileMandatoryPath to ikey, skey, akey/etc/certs/duo_creds.json
duo_hostMandatoryURL of the Duo API Serverapi-random.duosecurity.com
audit_attributeOptionalAttribute to determine user groupmemberOf
duo_groupOptionalAttribute to enable Duo for specific usermemberOf
audit_groupOptionalNotify administrator via email upon user loginmemberOf
audit_group_emailOptionalAdministrator emailadmin@organization.com

#Configure Duo Account

  1. Sign up for a Duo account.

  2. Log in to the Duo Admin Panel and navigate to Applications.

  3. Click Protect an Application and locate Web SDK in the applications list. Click Protect this Application to get your integration key, secret key, and API hostname.

  4. Generate an akey value for your instance. Learn more.

For additional info on Duo's Web SDK, check this article.

#Configure CE Chroot

  1. Prepare the Duo credential file /etc/certs/duo_creds.json with ikey, akey & skey

#Configure oxTrust

Follow the steps below to configure the Duo module in the oxTrust Admin GUI.

  1. Navigate to Configuration > Person Authentication Scripts.

  2. Scroll down to the Duo authentication script duo-script

  3. Change the value of duo_host to your API

  4. Enable the script by ticking the check box enable

Now Duo is an available authentication mechanism for your Gluu Server. This means that, using OpenID Connect acr_values, applications can now request Duo authentication for users.

#Make Duo the Default Authentication Mechanism

Now applications can request Duo authentication, but what if you want to make Duo your default authentication mechanism? You can follow these instructions:

  1. Navigate to Configuration > Manage Authentication.

  2. Select the Default Authentication Method tab.

  3. In the Default Authentication Method window you will see two options: Default acr and oxTrust acr.

    • The oxTrust acr field controls the authentication mechanism that is presented to access the oxTrust dashboard GUI (the application you are in).
    • The Default acr field controls the default authentication mechanism that is presented to users from all applications that leverage your Gluu Server for authentication.

You can change one or both fields to Duo authentication as you see fit. If you want Duo to be the default authentication mechanism for access to oxTrust and all other applications that leverage your Gluu Server, change both fields to Duo.

duo