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

# Set up SAML single sign-on for MongoDB Atlas

> Connect MongoDB Atlas workforce federation to Allthenticate over SAML: add the identity provider, register Atlas in Allthenticate, then activate and connect your organization.

MongoDB Atlas signs people in to the Atlas UI through its **Federation Management** app. Atlas generates its own ACS URL and audience URI only after you create the identity provider, so you add the identity provider in Atlas first, register Atlas in Allthenticate with those values, then point the Atlas identity provider at that service provider.

## Before you start

* Admin access to the Allthenticate admin portal.
* The **Organization Owner** role in Atlas.
* Your email domain verified in Atlas federation (**Domains**). Atlas checks it with a DNS record or an HTML file.
* Users who will sign in have the Allthenticator app set up.

## Open the Federation Management app

In Atlas, open your organization's **Settings**, find **Federation**, and select **Open Federation Management App**.

## Add the identity provider in Atlas

**1. Start the identity provider**

Select **Identity Providers**, then **Configure Identity Provider**. Choose **Workforce Identity Federation** and **SAML**.

**2. Enter Allthenticate's values**

Fill in a name such as `Allthenticate`, and enter the organization-wide values from [Organization-wide endpoints](https://help.allthenticate.com/help/sso/saml.md#organization-wide-endpoints) for now: you replace them with this service provider's own values once it exists.

| Atlas field | Value |
| - | - |
| **Issuer URI** | Allthenticate's IdP entity ID |
| **Single Sign-On URL** | Allthenticate's sign-in URL |
| **Request Binding** | **HTTP REDIRECT** |
| **Response Signature Algorithm** | **SHA-256** |
| **Identity Provider Signature Certificate** | Upload the certificate from **Download Public Key** |

Atlas takes the certificate as a file upload, not pasted text.

**3. Copy Atlas's values**

Save. The identity provider page shows Atlas's **Assertion Consumer Service URL** and **Audience URL**. Copy both, and note the **Login URL** and **Bypass SAML Mode** URL.

## Configure in Allthenticate

**1. Add the service provider**

In the admin portal, go to **SSO** > **SAML** and select **Add Service Provider**. Enter `MongoDB Atlas` as the **Provider Name**, uncheck **Use Metadata File**, and enter:

| Field | Value |
| - | - |
| **Entity ID** | Atlas's **Audience URL** |
| **ACS URL** | Atlas's **Assertion Consumer Service URL** |

**2. Add the name attributes**

Atlas needs the user's first and last name. Under **Custom Attribute Statements**, select **Add Attribute** for each:

| Name | Value |
| - | - |
| `firstName` | `user.firstName` |
| `lastName` | `user.lastName` |

**3. Point Atlas at the service provider**

Select **Save** and open the service provider. In Atlas, edit the identity provider and replace **Issuer URI** with the service provider's **Entity ID** and **Single Sign-On URL** with its **SSO Endpoint**.

## Activate and connect your organization

**1. Associate your domain**

On the identity provider, select **Associate Domains**, check your verified domain and select **Submit**. **Associated Domains** lists it.

**2. Activate the identity provider**

Open **Manage** > **Activate Identity Provider** and confirm. The page shows **Success! Your identity provider is now active!**

**3. Connect your organization**

Select **Organizations**, then **Configure Access** for your organization. Under **Identity Provider(s)**, select **Connect Identity Provider**, check the Allthenticate identity provider and select **Connect**.

Leave **Restrict Access by Domain** off until people have signed in successfully. **Default Role** and **Role Mappings** control what new federated users can do in the organization.

## Test sign-in

1. Open the identity provider's **Login URL** in a private browser window.
2. Approve the sign-in on your phone.
3. You land in Atlas, signed in.

> [!NOTE]
>
> Keep the **Bypass SAML Mode** URL. If federated sign-in stops working, it lets you sign in to Atlas with your Atlas credentials and fix the identity provider.

For other problems, see [SAML troubleshooting](https://help.allthenticate.com/help/sso/saml.md#troubleshooting).

## Related

* [Set up Allthenticate as a SAML identity provider](https://help.allthenticate.com/help/sso/saml.md)
* [Single sign-on overview](https://help.allthenticate.com/help/sso/overview.md)


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