# Identifier first Universal Login for SAML users without HRD

**URL:** <https://community.auth0.com/t/identifier-first-universal-login-for-saml-users-without-hrd/72073>\
**Category:** Get Help\
**Tags:** saml\
**Created:** [October 26, 2021, 1:32pm UTC](https://community.auth0.com/t/identifier-first-universal-login-for-saml-users-without-hrd/72073 "2021-10-26T13:32:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shmurakami](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shmurakami/32/32603_2.png) [@shmurakami](https://community.auth0.com/u/shmurakami)\
**Post date:** [October 26, 2021, 1:32pm UTC](https://community.auth0.com/t/identifier-first-universal-login-for-saml-users-without-hrd/72073/1 "2021-10-26T13:32:52Z")

</div>

Hi,  
I’m migrating my system authentication features to Auth0. My system has SAML feature and users redirect their own IdP relates their account resolved by mail address.  
I want to achieve this feature on Auth0 using Universal Login New Login Experience with Identifier first.  
I want to use HRD but I can’t because it has to support many SAML connections and some users are using general mail address domain like `gmail.com`.

I found document for `HRD through Universal Login using the Identifier to Realm Map` [Authentication (B2B)](https://auth0.com/docs/architecture-scenarios/b2b/authentication#hrd-through-universal-login-using-the-identifier-to-realm-map) that similar to I want to do. Does Auth0 have feature to manage map of identifiers to IdP? Or do I have to manage by myself? And how should I use this map through Universal Login?

Thanks!

---

<div class="post-metadata">

**Author:** ![shunsuke.tsutsui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shunsuke.tsutsui/32/20393_2.png) [@shunsuke.tsutsui](https://community.auth0.com/u/shunsuke.tsutsui)\
**Post date:** [October 27, 2021, 7:37am UTC](https://community.auth0.com/t/identifier-first-universal-login-for-saml-users-without-hrd/72073/2 "2021-10-27T07:37:51Z")

</div>

@shmurakami

New Universal Login has HRD based on a domain name not per email address.  
So New Universal Login does not meet your requirement, unfortunately.

However, you can achieve this with your own endpoint.  
the endpoint receives an email address, then returns to an appropriate connection name.  
then call /authorize with the connection name received from the endpoint.

Steps are like this:

1. A user inputs an email address and presses the “Next” button.
2. The frontend (Universal Login) calls the endpoint with the email address that the user has inputted.
3. The endpoint returns an appropriate connection name.
4. call /authorize with the connection name. (you can use our auth0.js library).

The endpoint will be publicly accessible. so please consider the Auth0 best practice documented on the [page](https://auth0.com/docs/architecture-scenarios/b2b/authentication?_ga=2.264937608.604341529.1635128285-745906246.1593607078&_gl=1*19saro2*rollup_ga*NzQ1OTA2MjQ2LjE1OTM2MDcwNzg.*rollup_ga_F1G3E656YZ*MTYzNTMxODA3NS4xMzAuMC4xNjM1MzE4MDc1LjYw#hrd-through-universal-login-using-the-identifier-to-realm-map) you provided.

> Best practice  
> Any public endpoint should have rate limiting applied to it to prevent hackers from using it to discover information and to prevent denial of service attacks.

Thank you

---

<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:** [October 27, 2021, 12:10pm UTC](https://community.auth0.com/t/identifier-first-universal-login-for-saml-users-without-hrd/72073/3 "2021-10-27T12:10:34Z")

</div>

Thanks for helping on this one @shunsuke.tsutsui !

---

<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:** [November 11, 2021, 12:10pm UTC](https://community.auth0.com/t/identifier-first-universal-login-for-saml-users-without-hrd/72073/4 "2021-11-11T12:10:54Z")

</div>

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