> ## Documentation Index
> Fetch the complete documentation index at: https://equatetravel.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Single sign-on (SAML)

> Let your team sign in through Okta, Microsoft Entra ID, Google Workspace or any SAML 2.0 identity provider — set up yourself in about 15 minutes.

With single sign-on, anyone with an email on your company's domain signs in to equate
through your own identity provider. People you assign in your identity provider join
your workspace the first time they sign in, and you can require SSO so passwords,
Google and Microsoft sign-in stop working for your domain.

SSO comes with the **SSO and IP allowlisting** add-on (included on Enterprise and
Bespoke). Add it from **Organisation → Plan & Billing**, then set it up from
**Organisation → Security**.

> [!NOTE]
>
> The set-up has a part for an equate admin and a part for whoever manages your
> identity provider. They don't need an equate account: on the Security page, **Email
> these details** sends them everything below.

## How it works

**1. Verify your email domain**

Add your domain (e.g. `acme.com`) and publish the TXT record we show at your DNS
provider. This proves the domain is yours, so nobody else can send its sign-ins
anywhere.

**2. Create a SAML app in your identity provider**

Use the service-provider details shown on the Security page (they're the same for
every identity provider — see below), and assign the people who need access.

**3. Connect it**

Paste your app's **metadata URL** (or upload its metadata XML file) on the Security
page and choose the role new people get.

**4. Test it**

Click **Test sign-in** and sign in with your own work account. If its email matches
the one you use in equate, you come back signed in through SSO with your current
role.

**5. Go live — and optionally require it**

Switch on **Sign in with SSO**. When you're ready, switch on **Require single
sign-on** so your domain can only use your identity provider.

## Service-provider details

These are the values to give your identity provider. **Organisation → Security**
shows the same ones, ready to copy:

| Setting | Value |
| - | - |
| Entity ID / Audience URI / Identifier | `https://api.equatetravel.ai/auth/v1/sso/saml/metadata` |
| ACS URL / Reply URL / Single sign-on URL | `https://api.equatetravel.ai/auth/v1/sso/saml/acs` |
| Sign-in URL (for app tiles) | `https://equatetravel.ai/login` |
| Name ID format | Email address (persistent) |
| SP metadata (for providers that can import it) | `https://api.equatetravel.ai/auth/v1/sso/saml/metadata?download=true` |

Send these attributes. `email` is required; the rest fill in people's names.

| Attribute | Value in your directory |
| - | - |
| `email` | The user's primary email |
| `name` | Display name |
| `firstName` | Given name |
| `lastName` | Surname |

The standard claim names your provider uses by default (for example Entra ID's
`http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress`) work too.

## Okta

**1. Create the app**

In the Okta Admin Console go to **Applications → Applications → Create App
Integration**, choose **SAML 2.0** and name it *equate*.

**2. Configure SAML**

* **Single sign-on URL**: the ACS URL. Leave *Use this for Recipient URL and
  Destination URL* ticked.
* **Audience URI (SP Entity ID)**: the Entity ID.
* **Name ID format**: EmailAddress. **Application username**: Email.
* **Attribute statements**: `email` → `user.email`, `firstName` → `user.firstName`,
  `lastName` → `user.lastName`.

**3. Assign people**

On the **Assignments** tab, assign the people or groups who should use equate.

**4. Copy the metadata URL**

On the **Sign On** tab, copy the **Metadata URL** and paste it into equate.

## Microsoft Entra ID

**1. Create the app**

In the Entra admin centre go to **Enterprise applications → New application →
Create your own application**, name it *equate* and choose *Integrate any other
application you don't find in the gallery (Non-gallery)*.

**2. Configure SAML**

Open **Single sign-on → SAML**, then edit **Basic SAML Configuration**:

* **Identifier (Entity ID)**: the Entity ID.
* **Reply URL (Assertion Consumer Service URL)**: the ACS URL.
* **Sign on URL**: the sign-in URL.

The default **Attributes & Claims** already send the email address — keep them.

**3. Assign people**

Under **Users and groups**, add the people or groups who should use equate.

**4. Copy the metadata URL**

In **SAML Certificates**, copy the **App Federation Metadata Url** and paste it into
equate.

## Google Workspace

**1. Create the app**

In the Google Admin console go to **Apps → Web and mobile apps → Add app → Add
custom SAML app** and name it *equate*.

**2. Download the metadata**

On the *Google Identity Provider details* screen, click **Download metadata** — you
upload this XML file to equate (Google doesn't offer a metadata URL).

**3. Configure the service provider**

* **ACS URL**: the ACS URL.
* **Entity ID**: the Entity ID.
* **Name ID format**: EMAIL. **Name ID**: Basic Information → Primary email.
* **Attribute mapping**: Primary email → `email`, First name → `firstName`, Last
  name → `lastName`.

**4. Turn it on**

Under **User access**, switch the app **ON for everyone** (or the organisational
units that need it). It can take a few minutes to apply.

## Any other SAML 2.0 provider

JumpCloud, OneLogin, PingOne, ADFS, Keycloak and others work the same way: create a
SAML 2.0 application with the Entity ID and ACS URL above, send the email address as
the Name ID (and an `email` attribute), assign your people, then give equate the
provider's metadata URL or XML file.

## Requiring SSO

**Require single sign-on** means people on your verified domains can only sign in
through your identity provider — not with a password, Google or Microsoft. To make sure
nobody is locked out of managing the workspace, equate only lets you switch it on once
at least one admin signs in through SSO (running the test sign-in with your own work
account does this).

> [!WARNING]
>
> An SSO sign-in is its own equate account. Someone who used a password or Google
> before keeps their old account, and their first SSO sign-in creates a new one with
> the role you chose for new people. Adjust roles from **Organisation → Users**
> afterwards.

## Changing or switching off SSO

* **Changing identity provider details** pauses SSO sign-in until a new test passes.
  Turn off *Require single sign-on* first.
* **Switching SSO off** sends your team back to passwords, Google and Microsoft. People
  who only ever signed in through SSO can't sign in until it's back on, so invite them
  again if they need another way in.
* **Removing the add-on** needs SSO and the IP allowlist switched off first. If the
  plan lapses, equate lifts *Require single sign-on* and the IP allowlist automatically
  so nobody is locked out.

## Troubleshooting

| What you see | What to check |
| - | - |
| *No TXT records found* | DNS changes can take up to an hour. Check the host is `_equate-verification.<your domain>` (some DNS providers add the domain for you — enter just `_equate-verification`). |
| *One of your domains is already connected to another identity provider* | The domain is in use by another equate workspace. Contact support. |
| The test comes back with *Invalid audience* or *Invalid destination* | The Entity ID or ACS URL in your identity provider doesn't exactly match the values on the Security page. |
| The test passes but you're asked to sign in again | You tested with an account whose email differs from your equate one. That still counts — sign back in and carry on. |
| *User is not assigned to this application* | Assign the person (or their group) to the equate app in your identity provider. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.