Duo can be used as a login provider to authenticate users into Launchpad using OpenID Connect (OIDC).
The following configuration options are available for Duo login provider.
Note
See How to Setup an OIDC App in Duo for instructions on creating a Duo OIDC application for Launchpad login.
The DUO_AUTH_ENABLED is used to enable or disable Duo authentication to log users into Launchpad.
- Required: Yes (if using Duo)
- Default:
false
The DUO_CLIENT_ID is the client ID from your Duo OIDC application used to sign users into Launchpad.
- Required: Yes (if using Duo)
- Default: not set
The DUO_CLIENT_SECRET is the client secret from your Duo OIDC application used to sign users into Launchpad.
- Required: Yes (if using Duo)
- Default: not set
The DUO_DISCOVERY_URL is the OpenID Connect discovery URL for your Duo application.
- Required: Yes (if using Duo)
- Default: not set
DUO_AUTH_ENABLED=true
DUO_CLIENT_ID=<your_client_id>
DUO_CLIENT_SECRET=<your_client_secret>
DUO_DISCOVERY_URL=https://some-url/.well-known/openid-configuration-
Create a Duo Account
- If you don't already have a Duo account, create a trial account at duo.com
- Log in to the Duo Admin Panel
-
Create OIDC Application
- Navigate to Applications > Application Catalog in the Duo Admin Panel
- Search for and select Generic OIDC Relying Party
- Click Add
-
Configure Application Settings
- Application name: Enter a descriptive name (e.g., "Stardog Launchpad")
- Grant types: Ensure Authorization Code is selected
- Scopes: Grant the following scopes:
openidprofileemail
-
Set Redirect URI
- Sign-in redirect URI:
{BASE_URL}/oauth/duo/redirect - Replace
{BASE_URL}with your Launchpad base URL (e.g.,http://localhost:8080/oauth/duo/redirect) - See
BASE_URLfor more information
- Sign-in redirect URI:
-
Collect Configuration Values
- Client ID: Found in the application details
- Client Secret: Found in the application details
- Discovery URL: Found in the application details. It should have the route
/.well-known/openid-configurationappended to the base URL, e.g.,https://api-123456.duosecurity.com/.well-known/openid-configuration
-
Configure Launchpad Environment Variables
DUO_AUTH_ENABLED=true DUO_CLIENT_ID=<client_id> DUO_CLIENT_SECRET=<client_secret> DUO_DISCOVERY_URL=<discovery_url>
Note
For more detailed information about configuring OIDC applications in Duo, see the Duo documentation.
