# Default connection when using universal login

**URL:** <https://community.auth0.com/t/default-connection-when-using-universal-login/147587>\
**Category:** Get Help\
**Tags:** oidc-enterprise-connection, connections\
**Created:** [September 19, 2024, 8:44pm UTC](https://community.auth0.com/t/default-connection-when-using-universal-login/147587 "2024-09-19T20:44:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nirajan.kharal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nirajan.kharal/32/60641_2.png) [@nirajan.kharal](https://community.auth0.com/u/nirajan.kharal)\
**Post date:** [September 19, 2024, 8:44pm UTC](https://community.auth0.com/t/default-connection-when-using-universal-login/147587/1 "2024-09-19T20:44:11Z")

</div>

We are using universal login. My case scenario is if user domain is not in listed in the connection, I want to send them all to a default connection. I do not want to use the db connection. New to auth0 so any help on this will be greatly appreciated.  
Case 1: [abc@auth0.com](mailto:abc@auth0.com) =\> send to auth0 IdP (this can be setup via home realm discovery)  
Case 2: [abc@randomdomain.com](mailto:abc@randomdomain.com) =\> send to default IdP (???)

Thanks,  
Nirajan

---

<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:** [September 20, 2024, 9:28pm UTC](https://community.auth0.com/t/default-connection-when-using-universal-login/147587/3 "2024-09-20T21:28:12Z")

</div>

Hi @nirajan.kharal,

You should be able to do this by setting your authentication profile to **Identifier First** and configuring a home realm discovery identity provider.

I recommend referring to our [Configure Identifier First Authentication](https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first) documentation.

Let me know if you have any questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![nirajan.kharal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nirajan.kharal/32/60641_2.png) [@nirajan.kharal](https://community.auth0.com/u/nirajan.kharal)\
**Post date:** [September 23, 2024, 2:28pm UTC](https://community.auth0.com/t/default-connection-when-using-universal-login/147587/4 "2024-09-23T14:28:21Z")

</div>

Hi @rueben.tiow ,

I guess I was not clear on my question. In identifier first if the domain is found in home realm it will take you the IdP provider. This part is easy. My business case is if email is not found in any domain then I want to send it to another IdP lets call it default IdP. So example will be “@nk.com” will take to NK company. However, I have have domain of “randomuser@\*\*.com” then it should redirect to default identity provider instead of the username/password flow. I do not want to use the database for the people who don’t have domain but the default IdP. Basically for all other users instead of using database to store them I want to use another catch all IdentityProvider.

Thanks,  
Nirajan

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [October 10, 2024, 1:29pm UTC](https://community.auth0.com/t/default-connection-when-using-universal-login/147587/5 "2024-10-10T13:29:52Z")

</div>

Hi team! 🖐

This is just a heads-up that we’ll be hosting an [Ask Me Anything (AMA) session all about Universal Login](https://community.auth0.com/t/october-24-ask-me-anything-tailor-your-experience-with-universal-login-from-low-code-to-pro-code/148825), and this question is relevant to our event. Auth0 by Okta Subject Matter Experts will answer your question on Thursday, October 24th, from 9 a.m. to 11 a.m. PST.

🤔 Have more questions about customizing your login experience, boosting security, or implementing advanced features?

👉 Drop your questions in [this thread](https://community.auth0.com/t/october-24-ask-me-anything-tailor-your-experience-with-universal-login-from-low-code-to-pro-code/148825) before October 23rd, and our experts will provide answers during the AMA!

🎉 Plus, you’ll earn points and a special badge for participating!

[Ask Me Anything: Tailor Your Experience with Universal Login — From Low-Code to Pro-Code](https://community.auth0.com/t/october-24-ask-me-anything-tailor-your-experience-with-universal-login-from-low-code-to-pro-code/148825)

Thanks  
Dawid

---

<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:** [January 29, 2025, 11:43pm UTC](https://community.auth0.com/t/default-connection-when-using-universal-login/147587/6 "2025-01-29T23:43:56Z")

</div>

Hi @nirajan.kharal,

You should be able to set a **Default Directory** in your tenant settings so that users are prompted to log in with that default IdP if their email domain does not match one found in home realm discovery when using identifier first authentication.

For more information on this setting, check out our [Tenant Settings](https://auth0.com/docs/get-started/tenant-settings#api-authorization-settings) documentation.

Thanks,  
Rueben

---

<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 12, 2025, 11:44pm UTC](https://community.auth0.com/t/default-connection-when-using-universal-login/147587/7 "2025-02-12T23:44:29Z")

</div>

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