# Does Auth0 support Hubspot SSO?

**URL:** <https://community.auth0.com/t/does-auth0-support-hubspot-sso/69059>\
**Category:** Get Help\
**Tags:** sso-integration, sso\
**Created:** [September 3, 2021, 2:37pm UTC](https://community.auth0.com/t/does-auth0-support-hubspot-sso/69059 "2021-09-03T14:37:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nandha.kumar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nandha.kumar/32/31530_2.png) [@nandha.kumar](https://community.auth0.com/u/nandha.kumar)\
**Post date:** [September 3, 2021, 2:37pm UTC](https://community.auth0.com/t/does-auth0-support-hubspot-sso/69059/1 "2021-09-03T14:37:59Z")

</div>

Does Auth0 support Hubspot SSO? I’m planning to integrate SSO with Hubspot for our Angular Web app.

---

<div class="post-metadata">

**Author:** ![praveen.addepally](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/praveen.addepally/32/14314_2.png) [@praveen.addepally](https://community.auth0.com/u/praveen.addepally)\
**Post date:** [September 5, 2021, 7:38am UTC](https://community.auth0.com/t/does-auth0-support-hubspot-sso/69059/2 "2021-09-05T07:38:29Z")

</div>

Hello,  
Based on the below docs it looks like Hubspot support SAML 2.0 protocol which Auth0 supports.

> **[Set up single sign-on (SSO)](https://knowledge.hubspot.com/account/can-i-use-single-sign-on-sso-with-hubspot)**
>
> Single sign-on (SSO) is supported for HubSpot Enterprise accounts. Learn how to enable SSO for your HubSpot users.

So you should be able to integrate Hubspot app with Auth0.

Reg. integrating Angular spa app, you should be able to integrate this app using OIDC/OAuth & can to provide SSO between Angular app/Hub spot by using the [Auth0 universal login](https://auth0.com/docs/login/universal-login).

Hope that helps!

-Praveen.

---

<div class="post-metadata">

**Author:** ![flip](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@flip](https://community.auth0.com/u/flip)\
**Post date:** [December 2, 2021, 11:19am UTC](https://community.auth0.com/t/does-auth0-support-hubspot-sso/69059/3 "2021-12-02T11:19:40Z")

</div>

Hi Praveen,

I tried above link, and it looks like this is working. But after the SSO logs in to Hubspot.  
I get this as error.

```auto
Something went wrong

Your identity provider is configured with an incorrect or missing setting.

Error: MISSING_EMAIL_IN_RESPONSE

Email Address not found in NameID property.

```

I expect this is because Hubspot needs the email to map the user with Hubspot.  
But how can I sent this email to Hubspot.

In `Addon: SAML2 Web App → Settings I added:

```auto
{
  "mappings": {
    "user_id": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier",
    "email": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
    "name": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
  }
}

```

What should pass it to Hubspot isn’t it?

---

<div class="post-metadata">

**Author:** ![flip](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@flip](https://community.auth0.com/u/flip)\
**Post date:** [December 2, 2021, 4:03pm UTC](https://community.auth0.com/t/does-auth0-support-hubspot-sso/69059/4 "2021-12-02T16:03:10Z")

</div>

I fixed it by setting email as username : [Map SAML Attributes with Auth0 as IdP/SAML Add-on](https://auth0.com/rules/saml-attribute-mapping)

---

<div class="post-metadata">

**Author:** ![tools\_admin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tools_admin/32/19208_2.png) [@tools\_admin](https://community.auth0.com/u/tools_admin)\
**Post date:** [January 20, 2022, 1:04am UTC](https://community.auth0.com/t/does-auth0-support-hubspot-sso/69059/5 "2022-01-20T01:04:26Z")

</div>

Hi,

Could you please elaborate on this, I am still facing the same error. 🙏

---

<div class="post-metadata">

**Author:** ![shea](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shea/32/8903_2.png) [@shea](https://community.auth0.com/u/shea)\
**Post date:** [August 5, 2022, 8:36pm UTC](https://community.auth0.com/t/does-auth0-support-hubspot-sso/69059/6 "2022-08-05T20:36:17Z")

</div>

Follow the instructions here: [Auth0 integration to HubSpot - #5 by benjamin9T](https://community.auth0.com/t/auth0-integration-to-hubspot/71719/5)

Then in your mappings (addons-\>saml) it should have this:  
“mappings”: {  
“email”: “[http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier](http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier)”,  
}

That worked for me.

---

<div class="post-metadata">

**Author:** ![cstill](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cstill/32/44177_2.png) [@cstill](https://community.auth0.com/u/cstill)\
**Post date:** [January 31, 2023, 1:15pm UTC](https://community.auth0.com/t/does-auth0-support-hubspot-sso/69059/7 "2023-01-31T13:15:44Z")

</div>

I received the following instructions from Auth0 support, and it enabled me to successfully verify in HubSpot.

Please go to your **Dashboard \> Auth Pipeline \> Rules** and create there a new rule with the following script:

```auto
function mapSamlAttributes(user, context, callback) {

context.samlConfiguration.mappings = {

"[http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier](https://protect-us.mimecast.com/s/gHbICqx5vJfz1xowiXTAXx?domain=schemas.xmlsoap.org)": "email",

};

callback(null, user, context);

}

```

Then save the rule

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 31, 2023, 1:22pm UTC](https://community.auth0.com/t/does-auth0-support-hubspot-sso/69059/8 "2023-01-31T13:22:01Z")

</div>

Thanks for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 14, 2023, 1:22pm UTC](https://community.auth0.com/t/does-auth0-support-hubspot-sso/69059/9 "2023-02-14T13:22:35Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
