# How can custom to using certificate format in Hosted login page?

**URL:** <https://community.auth0.com/t/how-can-custom-to-using-certificate-format-in-hosted-login-page/17848>\
**Category:** Get Help\
**Tags:** ad-ldap-connector, hosted-login-page, client\_credentials\
**Created:** [November 13, 2018, 7:47am UTC](https://community.auth0.com/t/how-can-custom-to-using-certificate-format-in-hosted-login-page/17848 "2018-11-13T07:47:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![it4](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/it4/32/8496_2.png) [@it4](https://community.auth0.com/u/it4)\
**Post date:** [November 13, 2018, 7:47am UTC](https://community.auth0.com/t/how-can-custom-to-using-certificate-format-in-hosted-login-page/17848/1 "2018-11-13T07:47:43Z")

</div>

I am using AD/LDAP connection.  
In hosted login page, can detect domain when I using email domain format as setting on AD/LDAP connection configuration.  
e.g:

 ![Untitled](https://global.discourse-cdn.com/auth0/original/2X/3/3cc3726c8f6ea740b838266b52c547e00ae5eb7f.png)

I want to can be detect domain when I using credentials format too.  
e.g:

 ![Untitled3](https://global.discourse-cdn.com/auth0/original/2X/4/4f9c006a6a16f7f35514e8dc3cc8e34738eaef7d.png)

Can I do it and how config if it’s possible?

---

<div class="post-metadata">

**Author:** ![nicolas\_sabena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas_sabena/32/6064_2.png) [@nicolas\_sabena](https://community.auth0.com/u/nicolas_sabena)\
**Post date:** [November 13, 2018, 2:05pm UTC](https://community.auth0.com/t/how-can-custom-to-using-certificate-format-in-hosted-login-page/17848/2 "2018-11-13T14:05:13Z")

</div>

Hi! I’m afraid this is not possible using Lock (the login widget) as of now.

You can, however, build your own user interface prompting the user for username/password and decide which connection to use based on the `domain/username` syntax. Once you have the username, password and connection figured out based on user input, you can use [Auth0.js](https://auth0.com/docs/libraries/auth0js/v9) to send the credentials to Auth0 for verification.

When editing the hosted login page, there is a “Custom Login Form” template that uses Auth0.js, that you can use as a start model. Building your own login form can be complicated, especially if you need to account for signup, socials connections, password reset and all the flows that are managed by Auth0. But if you just want AD connections with a single username/password form, this might work for you.

You can also describe this feature request in [Auth0: Secure access for everyone. But not just anyone.](https://auth0.com/feedback) for the Product team to consider for future versions.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 28, 2019, 11:21am UTC](https://community.auth0.com/t/how-can-custom-to-using-certificate-format-in-hosted-login-page/17848/3 "2019-08-28T11:21:23Z")

</div>


