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

> Connect HubSpot to Allthenticate over SAML by entering HubSpot's audience URI and sign-on URL in Allthenticate and Allthenticate's details in HubSpot by hand.

HubSpot doesn't provide a metadata file and doesn't accept Allthenticate's, so you enter the values by hand on both sides.

## Before you start

* Admin access to the Allthenticate admin portal.
* Access to HubSpot's account security settings.
* Users who will sign in have the Allthenticator app set up, with the same email address as their HubSpot user.

## Get HubSpot's details

**1. Open the HubSpot SSO settings**

In HubSpot, select the settings (gear) icon in the top bar. Under **Account management**, go to **Security** > **Login** and select **Configure Single Sign-on**.

![HubSpot Security settings on the Login tab, with Configure single sign-on (SSO) and its Edit button at the top](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/sso/hubspot/security-settings.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=429159c4f9fe39c4cfe7613dceea0ba0)

Settings > Security > Login in HubSpot.

**2. Start the setup**

The first time you set up SSO, HubSpot shows a start screen. Select **Setup SSO**.

![HubSpot Portal login settings screen asking whether to enable single sign-on, with Set up SSO and Not now buttons](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/sso/hubspot/set-up-sso.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=ef080d6db6b02a1519af1beea3812f3c)

**3. Copy the service provider values**

Copy the **Audience URI** and the **Sign on URL, ACS, Recipient, or Redirect** value. Keep this HubSpot tab open.

![HubSpot Set up single sign-on panel on the All Other Identity Providers tab, showing the Audience URI (Service Provider Entity ID) and Sign on URL, ACS, Recipient, or Redirect fields with Copy buttons](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/sso/hubspot/sp-values.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=cd34507ec42de961eec7c97f583862b2)

Step 1 in HubSpot. Your values end in your own portal ID.

## Configure in Allthenticate

**1. Add HubSpot as a service provider**

In the admin portal, go to **SSO** > **SAML** and select **Add Service Provider**. Enter `HubSpot` as the **Provider Name**. The [SAML setup guide](https://help.allthenticate.com/help/sso/saml.md#register-the-service-provider-in-allthenticate) shows the dialog with **Use Metadata File** unchecked.

**2. Enter HubSpot's details**

Uncheck **Use Metadata File**, then enter:

| Allthenticate field | Value from HubSpot |
| - | - |
| **Entity ID** | **Audience URI** |
| **ACS URL** | **Sign on URL, ACS, Recipient, or Redirect** |

Leave **Needs Unique IDs** unchecked.

**3. Save and collect Allthenticate's details**

Select **Save**. HubSpot appears in the list with the entity ID you entered. Select it, copy the **SSO Endpoint** and **Entity ID** from the **Metadata** section, and select **Download Public Key**.

## Configure in HubSpot

**1. Enter Allthenticate's details by hand**

Back in HubSpot, continue to **Step 2**. Don't upload Allthenticate's metadata file in the drag-and-drop area: HubSpot expects the X.509 certificate in a different format, so fill in the fields manually.

| HubSpot field | Value from Allthenticate |
| - | - |
| **Identity Provider Identifier or Issuer URL** | **Entity ID** |
| **Identity Provider single sign-on URL** | **SSO Endpoint** |
| **X.509 Certificate** | Contents of `Allthenticate-Public.crt` (next step) |

> [!TIP]
>
> You can use the organization-wide values instead: `https://saml.allthenticate.com/idpmetadata` as the issuer URL and `https://saml.allthenticate.com/ssoentry` as the sign-on URL. Use either both per-app values or both organization-wide values.

![HubSpot Step 2 with the metadata drag-and-drop area, Identity Provider Identifier or Issuer URL set to https://saml.allthenticate.com/idpmetadata and Identity Provider single sign-on URL set to https://saml.allthenticate.com/ssoentry](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/sso/hubspot/idp-fields.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=5064f002eab017070170721264e15b37)

Step 2 in HubSpot, filled in with the organization-wide values.

**2. Paste the certificate**

Open `Allthenticate-Public.crt` in a text editor and paste its full contents into HubSpot's certificate field, including the `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----` lines.

## Test sign-in

1. Start the SSO test sign-in in HubSpot. You are redirected to Allthenticate.
2. Approve the request on your phone.
3. After a successful sign-in, HubSpot asks how long to keep users signed in. Set **Inactive Session Timeout Value** (for example, `3d`) to how long a session can sit idle before users must sign in again.

   ![HubSpot prompt asking how long to keep users logged in, with the Inactive Session Timeout Value set to 3d](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/sso/hubspot/session-timeout.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=7a3384f28d7d299d6e7efb5e5ce23fcd)

If sign-in fails, 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.