# How to have one login page for multiple tenant regions?

**URL:** <https://community.auth0.com/t/how-to-have-one-login-page-for-multiple-tenant-regions/70133>\
**Category:** Get Help\
**Tags:** multi-tenant, region, new-universal-login, home-realm-discovery, login\
**Created:** [September 23, 2021, 8:06am UTC](https://community.auth0.com/t/how-to-have-one-login-page-for-multiple-tenant-regions/70133 "2021-09-23T08:06:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mk123](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mk123/32/12776_2.png) [@mk123](https://community.auth0.com/u/mk123)\
**Post date:** [September 23, 2021, 8:06am UTC](https://community.auth0.com/t/how-to-have-one-login-page-for-multiple-tenant-regions/70133/1 "2021-09-23T08:06:24Z")

</div>

**Use Case:**  
We have customers who want to store their data in US or Australia regions. We want them to be able to login from the same login page. Also, some customers use SAML/Social/Enterprise connection and we don’t want to show their login buttons on the login page.  
We’re not sure that they will always have some fixed domain for their users. So we don’t want to depend on Home Realm Discovery.

**Our Current Implementation:**

1. We have two tenants, Tenant 1 (US region) and Tenant 2 (Australia region).
2. Our web app does not contain any sub-domains for US and Australia regions. For example, the URL is https://{domain}.com
3. There is our own login page in our web app where user enters their email. It calls our own API which returns the Auth0 tenant and connection information for this user.
4. User is then redirected to Auth0’s Universal login page with pre-added “connection” and “login\_hint” params, to open user’s connection automatically (database or SAML/Social/Enterprise connections). This overcomes the limitation of Auth0 that we can’t do Home Realm discovery like automatic connection detection without specifying a domain.

**Question**

1. Is this the correct way to do this?
2. Can Auth0 provide a single login page for multiple regions. You can take a look at Zoho login page ([Zoho Accounts](https://accounts.zoho.com/signin)).
  - When you enter a US email, it keeps the domain as [https://accounts.zoho.com](https://accounts.zoho.com).
  - When you enter Australia email, it changes the domain to ([https://accounts.zoho.com.au](https://accounts.zoho.com.au))  
So, there is a single login page for multiple regions.

---

<div class="post-metadata">

**Author:** ![hadican](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hadican/32/35749_2.png) [@hadican](https://community.auth0.com/u/hadican)\
**Post date:** [March 9, 2022, 8:02am UTC](https://community.auth0.com/t/how-to-have-one-login-page-for-multiple-tenant-regions/70133/3 "2022-03-09T08:02:18Z")

</div>

This is a very good question actually. It would be great if someone can answer.

---

<div class="post-metadata">

**Author:** ![amin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amin/32/10144_2.png) [@amin](https://community.auth0.com/u/amin)\
**Post date:** [February 11, 2024, 9:43am UTC](https://community.auth0.com/t/how-to-have-one-login-page-for-multiple-tenant-regions/70133/4 "2024-02-11T09:43:28Z")

</div>

Hi,

You current solution can have a side on SSO. Since you’re first going to your own login page and then `/authorize` endpoint, there is more logic you should add to detect if user had a session or not.

Having said that, what you’re doing today seems correct to me. Auth0 doesn’t have “a single login page for multiple regions” so what you’re doing is reasonable.

I’m sure you have reasons to split customers by region tenant, but if you change your model to single global tenant, and separate regions by connection, then there is no need to have a router page to begin with.

Hope this helps,  
Amin

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 5, 2024, 6:38pm UTC](https://community.auth0.com/t/how-to-have-one-login-page-for-multiple-tenant-regions/70133/5 "2024-03-05T18:38:03Z")

</div>

Thanks for helping on this one @amin!

---

<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:** [March 19, 2024, 6:38pm UTC](https://community.auth0.com/t/how-to-have-one-login-page-for-multiple-tenant-regions/70133/6 "2024-03-19T18:38:15Z")

</div>

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