# Avoid leaking enterprise connection domains using lock.js

**URL:** <https://community.auth0.com/t/avoid-leaking-enterprise-connection-domains-using-lock-js/125205>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [January 19, 2024, 5:56pm UTC](https://community.auth0.com/t/avoid-leaking-enterprise-connection-domains-using-lock-js/125205 "2024-01-19T17:56:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![victorbaumann](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/victorbaumann/32/50032_2.png) [@victorbaumann](https://community.auth0.com/u/victorbaumann)\
**Post date:** [January 19, 2024, 5:56pm UTC](https://community.auth0.com/t/avoid-leaking-enterprise-connection-domains-using-lock-js/125205/1 "2024-01-19T17:56:00Z")

</div>

Hi, we are trying to implement Enterprise SSO login with the classic universal login. While using the Lock default template for the login form, I noticed that it makes a call to the server, which among other things returns a list (`domain_aliases`) with all the domains associated with enterprise connections.

Is there a way to disable this behavior? We don’t want to leak that information to anyone who accesses the page and knows what to look for.

Please note that we have already confirmed with Auth0 solution engineers that our login requirements cannot be fulfilled with the new universal login. Now, it comes down to whether we can use Lock.js or need to fallback to the Auth0 SDK.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 22, 2024, 8:06pm UTC](https://community.auth0.com/t/avoid-leaking-enterprise-connection-domains-using-lock-js/125205/3 "2024-01-22T20:06:43Z")

</div>

Hi @victorbaumann,

Welcome to the Auth0 Community!

As far as I can find, this is how Classic Universal Login handles home realm discovery. Are you still seeing this behavior with HRD disabled?

---

<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 5, 2024, 8:07pm UTC](https://community.auth0.com/t/avoid-leaking-enterprise-connection-domains-using-lock-js/125205/4 "2024-02-05T20:07:26Z")

</div>

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