Set Up OneLogin Directory

In this guide, you will configure OneLogin as a SAML identity provider for Guardrails. This is a three-step process: create the SAML directory in Guardrails, configure the SAML app in OneLogin with the callback URL, then update the Guardrails directory with the IdP metadata.

Prerequisites

Step 1: Create the SAML Directory in Guardrails

  1. Navigate to Workspace > Directories.

  2. Click Create Directory and select SAML.

Create SAML Directory form with Title, Entry Point, Issuer, Certificate, and Profile ID Template fields

  1. Fill in the directory details:
FieldDescription
TitleDisplayed on the login screen. Example: Acme Corp OneLogin.
DescriptionOptional.
Entry PointLeave blank or enter a placeholder. You'll update this with the OneLogin SSO URL in step 3.
IssuerLeave blank or enter a placeholder. You'll update this with the OneLogin Issuer URL in step 3.
CertificateLeave blank. You'll add this in step 3.
Profile ID TemplateDefault {{profile.email}} works for most cases. Cannot be changed after creation.
  1. Expand Advanced and set:

    • Require Signed Authentication Response: set to Disabled. OneLogin does not support this feature.
  2. Click Create.

  3. Click the new directory to open its detail view. Copy the Callback URL.

Step 2: Configure the SAML App in OneLogin

  1. Sign in to the OneLogin admin portal.

  2. Navigate to Applications > Add App.

  3. Search for SAML Test Connector and select SAML Test Connector (Advanced).

  4. Enter Turbot Guardrails as the Display Name and click Save.

  5. Click the Configuration tab and enter:

FieldValue
Audience (Entity ID)Paste the Callback URL from the Guardrails directory.
ACS (Consumer) URL ValidatorPaste the Callback URL from the Guardrails directory.
ACS (Consumer) URLPaste the Callback URL from the Guardrails directory.
  1. Click the SSO tab. Copy the Issuer URL and the SAML 2.0 Endpoint (HTTP). You'll need these for step 3.

  2. Change the SAML Signature Algorithm to SHA-256.

  3. Under the certificate section, click View Details and copy the X.509 certificate.

  4. Click the Parameters tab. Add the following attributes using the + button:

OneLogin Parameters tab showing attribute mappings for SAML integration

NameValue
emailEmail
firstNameFirst Name
lastNameLast Name
displayNameDisplay Name (or First Name + Last Name)
nameIdEmail (or Username)
  1. Click Save.

Step 3: Update the Guardrails Directory

  1. Back in Guardrails, navigate to Workspace > Directories and click the OneLogin directory to edit it.

  2. Update the following fields:

FieldValue
Entry PointThe SAML 2.0 Endpoint (HTTP) from OneLogin.
IssuerThe Issuer URL from OneLogin.
CertificateThe X.509 certificate from OneLogin.
  1. Under Formats, set Name ID Format to Unspecified (or Email Address if you configured OneLogin to use email as the NameID).

  2. Click Update.

Step 4: Activate and Test

  1. Navigate to Workspace > Directories.

  2. Click the Activate action on the new SAML directory.

  3. Open an incognito or private browser window.

  4. Navigate to your Guardrails workspace URL.

  5. Select the new directory from the login dropdown and sign in with a OneLogin user.

  6. After signing in, verify the profile was created correctly. Check that the display name, email, and other fields are populated.

  7. The user has no permissions until an administrator grants them.

Troubleshooting

IssueSolution
InResponseTo is missing from responseEnable Allow IdP-Initiated SSO in the Guardrails directory advanced settings.
SAML assertion audience mismatchDisable Strict Audience Validation in the Guardrails directory advanced settings.
Profile fields are blank after loginVerify the attribute names in the OneLogin Parameters tab are correct and case-sensitive.
Login fails with a redirect errorVerify the ACS (Consumer) URL in OneLogin matches the Callback URL from Guardrails exactly.
Directory doesn't appear on the login screenConfirm the directory is Active on the Workspace > Directories page.

Next Steps