# Custom Domain - Now SSO doesn't actually work anymore

**URL:** <https://community.auth0.com/t/custom-domain-now-sso-doesnt-actually-work-anymore/46411>\
**Category:** Get Help\
**Tags:** custom-domain, auth0\
**Created:** [July 16, 2020, 4:01pm UTC](https://community.auth0.com/t/custom-domain-now-sso-doesnt-actually-work-anymore/46411 "2020-07-16T16:01:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![contact12](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/contact12/32/12934_2.png) [@contact12](https://community.auth0.com/u/contact12)\
**Post date:** [July 16, 2020, 4:01pm UTC](https://community.auth0.com/t/custom-domain-now-sso-doesnt-actually-work-anymore/46411/1 "2020-07-16T16:01:44Z")

</div>

I just set up a custom domain and added two new applications to the tenent (wordpress using the Auth0 plugin).

Both new sites have been configured with the exact same settings as previous wordpress sites, but a user going from our main Auth0 enabled site isn’t automatically logged in to the new sites.

I’ve tried everything I can think of. I even removed Auth0 from one of the original Wordpress sites and reinstalled it. And now that one wont work with cross-site login either.

What am I doing wrong?

**Edit:** The problem seems to be that it will remember the user between sites, provided the application was created in Auth0 **after** the custom domain was created. But only if you go from one site to the /login of the next. For example:

- Sign in on [123.com](http://123.com) with Auth0, then go to [456.com/login](http://456.com/login) = it works (i.e. it logs you in and takes you to the homepage)
- Sign in on [123.com](http://123.com) with Auth0, then go to [456.com/anythingelse](http://456.com/anythingelse) = doesn’t work (i.e. it gives a "not logged in message)

---

<div class="post-metadata">

**Author:** ![guy1812](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/guy1812/32/18251_2.png) [@guy1812](https://community.auth0.com/u/guy1812)\
**Post date:** [July 16, 2020, 4:56pm UTC](https://community.auth0.com/t/custom-domain-now-sso-doesnt-actually-work-anymore/46411/2 "2020-07-16T16:56:47Z")

</div>

I have implemented the same SSO idea based on auth0, a mobile app and two wordpress sites.  
But I used the same Auth0 app for all of them, and I think it is required for the SSO u want.  
Why did you create two apps?

---

<div class="post-metadata">

**Author:** ![contact12](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/contact12/32/12934_2.png) [@contact12](https://community.auth0.com/u/contact12)\
**Post date:** [July 16, 2020, 6:16pm UTC](https://community.auth0.com/t/custom-domain-now-sso-doesnt-actually-work-anymore/46411/3 "2020-07-16T18:16:23Z")

</div>

Hi, thanks for the above. It may be that I’ve misunderstood how it all should work. In its previous set up I had an app for each of the separate websites all under the same tenant. It worked fine, but the custom domain has caused it all to break.

I’ll try getting them all to work from the same app. I take it you have all your URLs listed in the main app setting? E.g. callback etc

---

<div class="post-metadata">

**Author:** ![contact12](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/contact12/32/12934_2.png) [@contact12](https://community.auth0.com/u/contact12)\
**Post date:** [July 16, 2020, 8:15pm UTC](https://community.auth0.com/t/custom-domain-now-sso-doesnt-actually-work-anymore/46411/4 "2020-07-16T20:15:26Z")

</div>

It didn’t work for me. I think the whole point of having multiple applications (per site or service) is that it allows a user to move between them without having to sign on, rather than a single application for multiple websites.

> **[Universal login - SSO between multiple apps - Auth0](https://auth0.com/universal-login)**
>
> Secure and simple to setup - Universal Login provides customizable and embedded login options for securing single sign on and user authentication between multiple apps.

I think this is why you can add multiple apps under the same tenant.

---

<div class="post-metadata">

**Author:** ![contact12](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/contact12/32/12934_2.png) [@contact12](https://community.auth0.com/u/contact12)\
**Post date:** [July 16, 2020, 9:58pm UTC](https://community.auth0.com/t/custom-domain-now-sso-doesnt-actually-work-anymore/46411/5 "2020-07-16T21:58:34Z")

</div>

Ok, so I’ve made progress. The use of a custom domain where the TLD was the same as for 3 of the wordpress sites, but not for the 4th non-wordpress site mean that it does work across the different top level domains.

The only solution I have found is to remove the custom domain and have all 4 working off the Auth0 domain.

Really annoying, since it will cost me about EUR400 to change the 4th website’s domain and SSL (the company hosting it charge a lot).

Does anyone know how to make a custom domain ([subdomain.abc.com](http://subdomain.abc.com)) work with both wordpress sites (that have [123.abc.com](http://123.abc.com) / [456.abc.com](http://456.abc.com) / [789.abc.com](http://789.abc.com)) work seamlessly with another site that is [subdomain.xyz.com](http://subdomain.xyz.com)?

---

<div class="post-metadata">

**Author:** ![narindergoyal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/narindergoyal/32/13118_2.png) [@narindergoyal](https://community.auth0.com/u/narindergoyal)\
**Post date:** [November 22, 2021, 2:13pm UTC](https://community.auth0.com/t/custom-domain-now-sso-doesnt-actually-work-anymore/46411/6 "2021-11-22T14:13:50Z")

</div>

Hi @guy1812, just wanted to understand how you made this ssi working. I was also trying sso across two SPAs with one app. But when it redirects to second app after login from first app, /authorize api call always fails.
