Set Up AWS IAM Identity Center (SSO) Directory

In this guide, you will configure AWS IAM Identity Center (formerly AWS SSO) as a SAML identity provider for Guardrails. This is a three-step process: create the SAML directory in Guardrails, configure a custom SAML application in AWS, then update the Guardrails directory with the AWS SSO 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 AWS SSO.
DescriptionOptional.
Entry PointLeave blank or enter a placeholder. You'll update this with the AWS SSO sign-in URL in step 3.
IssuerLeave blank or enter a placeholder. You'll update this with the AWS SSO 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. Configure Advanced settings as needed:
OptionGuidance
Allow IdP-Initiated SSOEnable if users will launch Guardrails from the AWS access portal.
Require Signed Authentication ResponseEnable if your organization requires it.
Strict Audience ValidationOnly enable if the Issuer matches your workspace URL.
  1. Click Create.

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

Step 2: Configure the SAML Application in AWS

  1. Sign in to the AWS management account and navigate to IAM Identity Center.

  2. Go to Applications > Add a new application > Add a custom SAML 2.0 application.

  3. Set the Display Name and Description (e.g., Turbot Guardrails).

  4. Under Application metadata, select If you don't have a metadata file, you can manually type your metadata values.

  5. Paste the Callback URL from Guardrails into both:

    • Application ACS URL
    • Application SAML audience
  6. Go to the Attribute Mappings tab and configure the following. Note that the attribute names in the first column are case-sensitive:

AWS IAM Identity Center attribute mappings for SAML integration

AttributeMaps toFormat
Subject${user:email}emailAddress
email${user:email}unspecified
firstName${user:givenName}unspecified
lastName${user:familyName}unspecified
displayName${user:displayName}unspecified
nameId${user:email}unspecified
  1. Click Save Changes.

  2. Copy the following from the application's SSO configuration:

    • AWS SSO sign-in URL (this becomes the Entry Point)
    • AWS SSO issuer URL (this becomes the Issuer)
    • Download the AWS SSO certificate

Step 3: Update the Guardrails Directory

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

  2. Update the following fields:

FieldValue
Entry PointThe AWS SSO sign-in URL.
IssuerThe AWS SSO issuer URL.
CertificateThe AWS SSO certificate contents.
  1. 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.

  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, or ensure the Issuer matches the Application SAML audience in AWS.
Profile fields are blank after loginVerify the attribute mappings in AWS IAM Identity Center. Attribute names are case-sensitive. Refer to the AWS SSO Attribute docs.
Login fails with a redirect errorVerify the Application ACS URL in AWS matches the Callback URL from the Guardrails directory exactly.
Directory doesn't appear on the login screenConfirm the directory is Active on the Workspace > Directories page.

Next Steps