> ## 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 Salesforce single sign-on with Allthenticate

> Sign in to Salesforce with Allthenticate over SAML: enable SAML, import the Allthenticate metadata, register Salesforce, and switch your My Domain login.

## Before you start

* A Salesforce administrator who can change **Single Sign-On Settings** and **My Domain**.
* An Allthenticate admin portal account that can manage **SSO**.
* Users whose Allthenticate email matches the email they sign in to Salesforce with.

For the general Allthenticate SAML steps, see [SAML single sign-on](https://help.allthenticate.com/help/sso/saml.md).

## Configure in Salesforce: add Allthenticate

**1. Enable SAML**

In Salesforce, search **Quick Find** for `Single Sign-On` and open **Single Sign-On Settings**. Select **Edit**, check **SAML Enabled** under **Federated Single Sign-On using SAML**, and select **Save**.

![Salesforce Setup Single Sign-On Settings page with the Edit button, the SAML Enabled checkbox under Federated Single Sign-On Using SAML, and the New from Metadata File button](https://mintcdn.com/allthenticate-e69095b0/g-zi7v0R7GgX14Ya/images/help/sso/salesforce/single-sign-on-settings.png?fit=max\&auto=format\&n=g-zi7v0R7GgX14Ya\&q=85\&s=c79bbf1e03f854eaaf2406fdf90f6669)

Single Sign-On Settings in Salesforce Setup.

**2. Get the Allthenticate metadata**

Download `https://saml.allthenticate.com/idpmetadata` and save it as an `.xml` file.

**3. Create the SAML configuration from the metadata**

In **Single Sign-On Settings**, select **New from Metadata File**, choose the `.xml` file, and select **Create**. Salesforce reads the endpoints from the file.

![Salesforce SAML Single Sign-On Settings page with a Metadata File chooser holding the Allthenticate metadata file and a Create button](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/sso/salesforce/new-from-metadata-file.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=eee0190f40b752aca674573c41d9d503)

**4. Review and save**

Change **Name** and **API Name** if you like. Leave **Entity ID** as your Salesforce org's URL. If **Identity Provider Certificate** is empty, upload the Allthenticate certificate (see the next section for **Download Public Key**). Select **Save**.

![Salesforce SAML Single Sign-On Settings edit page with Name and API Name, Issuer set to Allthenticate, the Identity Provider Certificate chooser, Entity ID, and Identity Provider Login URL https://sso.allthenticate.com/ssoentry](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/sso/salesforce/saml-settings.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=bcd3f2b242e8a861533060ab55f2eee6)

The SAML configuration created from Allthenticate's metadata. Your Entity ID is your own org's URL.

## Configure in Allthenticate

**1. Download Salesforce's metadata**

In Salesforce's **Single Sign-On Settings**, open the configuration you created and select **Download Metadata**.

**2. Add the service provider**

In the admin portal, go to **SSO** > **SAML** and select **Add Service Provider**. Enter a **Provider Name**, check **Use Metadata File**, upload Salesforce's metadata, and select **Save**. The [SAML setup guide](https://help.allthenticate.com/help/sso/saml.md#register-the-service-provider-in-allthenticate) shows each field of this dialog.

**3. Check it**

The new service provider appears in the list with the entity ID from Salesforce's metadata. Open it to find **Download Public Key** if Salesforce needs the certificate.

## Configure in Salesforce: switch the login

1. Search **Quick Find** for `My Domain` and go to **Authentication Configuration**.
2. Select **Edit** and, under **Authentication Service**, check your Allthenticate configuration.
3. To sign in only with Allthenticate, uncheck **Login Form**. To keep passwords available for super admins, leave it checked.
4. Select **Save**.

![Salesforce My Domain page with the Authentication Configuration section, its Edit button, and Authentication Service set to Login Form](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/sso/salesforce/authentication-configuration.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=b9c12885bf35999c6ca3b9144c2a59d3)

My Domain > Authentication Configuration before it is edited.

## Test sign-in

1. In a private browser window, open your org's Salesforce URL.
2. If Allthenticate is the only authentication service, Salesforce redirects you to the Allthenticate sign-in page. Otherwise, choose Allthenticate on the login page.
3. Approve the request on your phone. You land in Salesforce.

## Troubleshooting

> [accordion] Salesforce rejects the sign-in
>
> The email you signed in with in Allthenticate must match the user's Salesforce email. To see why Salesforce rejected an assertion, use the **SAML Assertion Validator** in Salesforce's **Single Sign-On Settings**.

## 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.