ClaroDocs
IT & DevOps

SSO / SAML Configuration

Configure single sign-on with Okta, Azure AD, or Google Workspace.

SSO / SAML Configuration

Claro supports SAML 2.0 single sign-on, allowing users to authenticate through your organization's identity provider (IdP). This guide covers the general SAML setup process and provides provider-specific instructions for Okta, Azure AD (Entra ID), and Google Workspace.

Overview

The SAML 2.0 authentication flow works as follows:

  1. User navigates to Claro and clicks "Sign in with SSO"
  2. Claro redirects the user to your identity provider's login page
  3. The user authenticates with the IdP (password, MFA, etc.)
  4. The IdP sends a SAML assertion back to Claro's ACS URL
  5. Claro validates the assertion, creates or updates the user account, and issues a session

Just-In-Time Provisioning

When a user signs in via SSO for the first time, Claro automatically creates their account using the attributes from the SAML assertion (email, first name, last name). This is called Just-In-Time (JIT) provisioning. No manual user creation is needed.

Get Your SP Details

Before configuring your identity provider, you need Claro's Service Provider (SP) details. Navigate to Settings > SSO in Claro to find:

FieldValue
SP Entity IDhttps://YOUR_API_URL/auth/saml/YOUR_TENANT_SLUG/metadata
ACS URLhttps://YOUR_API_URL/auth/saml/YOUR_TENANT_SLUG/callback
SP Metadata URLhttps://YOUR_API_URL/auth/saml/YOUR_TENANT_SLUG/metadata

Copy these values. You will need them when configuring the SAML application in your IdP.

Provider Setup

Create a SAML Application

In the Okta Admin Console:

  1. Go to Applications > Applications
  2. Click Create App Integration
  3. Select SAML 2.0 and click Next
  4. Enter the app name: "Claro" (or your preferred name)
  5. Upload the Claro logo (optional)

Configure SAML Settings

On the SAML Settings page:

FieldValue
Single sign-on URLYour ACS URL from Claro
Audience URI (SP Entity ID)Your SP Entity ID from Claro
Name ID formatEmailAddress
Application usernameEmail

Under Attribute Statements, add:

NameValue
emailuser.email
firstNameuser.firstName
lastNameuser.lastName

Get IdP Details

After creating the app, go to the Sign On tab and click View SAML setup instructions or Identity Provider metadata. You will need:

  • IdP SSO URL (Identity Provider Single Sign-On URL)
  • IdP Certificate (X.509 certificate)

You can also copy the Metadata URL for automatic configuration.

Assign Users

In the Assignments tab, assign the app to the users or groups who should access Claro via SSO.

Create an Enterprise Application

In the Azure Portal:

  1. Go to Microsoft Entra ID > Enterprise applications
  2. Click New application > Create your own application
  3. Enter the name: "Claro"
  4. Select "Integrate any other application you don't find in the gallery (Non-gallery)"
  5. Click Create

Configure SAML SSO

Navigate to the new application and click Single sign-on > SAML. Edit the Basic SAML Configuration:

FieldValue
Identifier (Entity ID)Your SP Entity ID from Claro
Reply URL (ACS URL)Your ACS URL from Claro
Sign on URLhttps://YOUR_APP_URL/login

Configure Claims

Under Attributes & Claims, configure the following claims:

Claim NameSource Attribute
emailuser.userprincipalname (or user.mail)
firstNameuser.givenname
lastNameuser.surname

Ensure the Unique User Identifier (Name ID) is set to user.userprincipalname with format Email address.

Download Certificate and Metadata

In the SAML Signing Certificate section:

  • Download the Certificate (Base64)
  • Copy the App Federation Metadata Url (or download the Federation Metadata XML)

In the Set up Claro section:

  • Copy the Login URL (this is the IdP SSO URL)

Assign Users

Go to Users and groups and add the users or groups who should access Claro via SSO.

Create a Custom SAML App

In the Google Admin Console:

  1. Go to Apps > Web and mobile apps
  2. Click Add app > Add custom SAML app
  3. Enter the app name: "Claro"
  4. Upload the Claro logo (optional)

Download IdP Information

Google displays the IdP metadata on the second step:

  • SSO URL - Copy this (IdP entry point)
  • Entity ID - Copy this
  • Certificate - Download the X.509 certificate

Click Continue.

Configure Service Provider Details

Enter Claro's SP details:

FieldValue
ACS URLYour ACS URL from Claro
Entity IDYour SP Entity ID from Claro
Name ID formatEMAIL
Name IDBasic Information > Primary email

Configure Attribute Mapping

Add the following attribute mappings:

Google Directory AttributeApp Attribute
Primary emailemail
First namefirstName
Last namelastName

Click Finish.

Enable for Users

By default, the app is OFF for everyone. Click the app, then under User access, set the service status to ON for everyone (or for specific organizational units).

Configure Claro

After setting up the SAML application in your IdP, enter the IdP details in Claro:

Enter IdP Configuration

Navigate to Settings > SSO in Claro and fill in:

FieldDescription
IdP Metadata URLIf your IdP provides a metadata URL, enter it here. Claro will auto-populate the other fields.
IdP Entry PointThe SSO URL from your IdP (only needed if not using metadata URL)
IdP CertificateThe X.509 certificate from your IdP (paste the PEM-encoded certificate content)

Configure Attribute Mapping

Map the SAML assertion attributes to Claro user fields:

Claro FieldSAML Attribute Name
Emailemail (default)
First NamefirstName (default)
Last NamelastName (default)

Adjust these if your IdP uses different attribute names.

Test SSO

Click the Test SSO button. This opens a new window that performs a full SAML authentication flow. If the test succeeds, you will see a success message with the user attributes received from your IdP.

If the test fails, check:

  • The ACS URL and Entity ID are correctly entered in your IdP
  • The IdP certificate is current and not expired
  • The attribute names match between the IdP and Claro configuration

Save Configuration

Click Save to activate SSO for your tenant.

SSO-Only Mode

After verifying SSO works correctly, you can optionally enable SSO-only mode to disable password-based login for all users:

Navigate to Settings > SSO and toggle SSO-Only Mode on.

When SSO-only mode is enabled, users can only log in through SSO. Password login is disabled for everyone except emergency bypass accounts. Make sure SSO is working correctly before enabling this.

Emergency Bypass

The first Tenant Admin account is automatically flagged as an emergency bypass account. This account can still log in with a password even when SSO-only mode is enabled. This prevents lockout if the IdP experiences downtime.

Super Admin accounts always bypass SSO-only restrictions.

Troubleshooting

"Invalid SAML response" error:

  • Check that the IdP certificate in Claro matches the certificate configured in the IdP
  • Verify the clock synchronization between Claro and the IdP (SAML assertions have a time window)
  • Ensure the ACS URL is exactly correct (no trailing slashes, correct protocol)

User attributes not mapping correctly:

  • Check the attribute names in the SAML assertion match the mapping in Claro
  • Some IdPs use URN-style names by default (for example, urn:oid:0.9.2342.19200300.100.1.3 for email); update the mapping accordingly

Users cannot log in after enabling SSO-only mode:

  • Verify the IdP application is assigned to the affected users
  • Use the emergency bypass account to log in and check the configuration
  • Temporarily disable SSO-only mode to restore password login while debugging