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:
- User navigates to Claro and clicks "Sign in with SSO"
- Claro redirects the user to your identity provider's login page
- The user authenticates with the IdP (password, MFA, etc.)
- The IdP sends a SAML assertion back to Claro's ACS URL
- 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:
| Field | Value |
|---|---|
| SP Entity ID | https://YOUR_API_URL/auth/saml/YOUR_TENANT_SLUG/metadata |
| ACS URL | https://YOUR_API_URL/auth/saml/YOUR_TENANT_SLUG/callback |
| SP Metadata URL | https://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:
- Go to Applications > Applications
- Click Create App Integration
- Select SAML 2.0 and click Next
- Enter the app name: "Claro" (or your preferred name)
- Upload the Claro logo (optional)
Configure SAML Settings
On the SAML Settings page:
| Field | Value |
|---|---|
| Single sign-on URL | Your ACS URL from Claro |
| Audience URI (SP Entity ID) | Your SP Entity ID from Claro |
| Name ID format | EmailAddress |
| Application username |
Under Attribute Statements, add:
| Name | Value |
|---|---|
email | user.email |
firstName | user.firstName |
lastName | user.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:
- Go to Microsoft Entra ID > Enterprise applications
- Click New application > Create your own application
- Enter the name: "Claro"
- Select "Integrate any other application you don't find in the gallery (Non-gallery)"
- Click Create
Configure SAML SSO
Navigate to the new application and click Single sign-on > SAML. Edit the Basic SAML Configuration:
| Field | Value |
|---|---|
| Identifier (Entity ID) | Your SP Entity ID from Claro |
| Reply URL (ACS URL) | Your ACS URL from Claro |
| Sign on URL | https://YOUR_APP_URL/login |
Configure Claims
Under Attributes & Claims, configure the following claims:
| Claim Name | Source Attribute |
|---|---|
email | user.userprincipalname (or user.mail) |
firstName | user.givenname |
lastName | user.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:
- Go to Apps > Web and mobile apps
- Click Add app > Add custom SAML app
- Enter the app name: "Claro"
- 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:
| Field | Value |
|---|---|
| ACS URL | Your ACS URL from Claro |
| Entity ID | Your SP Entity ID from Claro |
| Name ID format | |
| Name ID | Basic Information > Primary email |
Configure Attribute Mapping
Add the following attribute mappings:
| Google Directory Attribute | App Attribute |
|---|---|
| Primary email | email |
| First name | firstName |
| Last name | lastName |
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:
| Field | Description |
|---|---|
| IdP Metadata URL | If your IdP provides a metadata URL, enter it here. Claro will auto-populate the other fields. |
| IdP Entry Point | The SSO URL from your IdP (only needed if not using metadata URL) |
| IdP Certificate | The 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 Field | SAML Attribute Name |
|---|---|
email (default) | |
| First Name | firstName (default) |
| Last Name | lastName (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.3for 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