# Dynamic Enterprice connection name to use Authorize on Custom login page

**URL:** <https://community.auth0.com/t/dynamic-enterprice-connection-name-to-use-authorize-on-custom-login-page/185286>\
**Category:** Get Help\
**Tags:** identifier-first, login-experience\
**Created:** [April 10, 2025, 9:54am UTC](https://community.auth0.com/t/dynamic-enterprice-connection-name-to-use-authorize-on-custom-login-page/185286 "2025-04-10T09:54:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vinay3/32/71837_2.png) [@vinay3](https://community.auth0.com/u/vinay3)\
**Post date:** [April 10, 2025, 9:54am UTC](https://community.auth0.com/t/dynamic-enterprice-connection-name-to-use-authorize-on-custom-login-page/185286/1 "2025-04-10T09:54:21Z")

</div>

**How can we securely determine and trigger the correct enterprise connection (like Okta) on the custom login page based on the user’s email, considering:**

- **Rules are deprecated** and there are **no pre-login triggers** available now
- **Actions only run post-login** , which doesn’t help for dynamic connection routing
- The user’s email domain doesn’t directly match the connection name (e.g., `vinay@gmail.com` → `tailorbird_okta`)
- Using Management API from frontend is insecure due to token exposure

> Is there any **recommended Auth0 pattern or workaround** for securely resolving the connection name _before_ calling `authorize()`?

---

<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:** [April 30, 2025, 9:04pm UTC](https://community.auth0.com/t/dynamic-enterprice-connection-name-to-use-authorize-on-custom-login-page/185286/3 "2025-04-30T21:04:51Z")

</div>

Hi @vinay3

Welcome to the Auth0 Community!

As you mentioned, there’s no recommended pattern for doing it from a public application, like an SPA or a Native application. I encourage you to open a new thread in the #Product Feedback category to explain your use case. \<ake sure to upvote it to get as many votes as possible and attract as many community members as possible.

Thanks  
Dawid

---

<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:** [May 14, 2025, 9:05pm UTC](https://community.auth0.com/t/dynamic-enterprice-connection-name-to-use-authorize-on-custom-login-page/185286/4 "2025-05-14T21:05:07Z")

</div>

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