# Universal login and multiple SAML idp

**URL:** <https://community.auth0.com/t/universal-login-and-multiple-saml-idp/63606>\
**Category:** Get Help\
**Tags:** saml, universal-login\
**Created:** [May 31, 2021, 6:30pm UTC](https://community.auth0.com/t/universal-login-and-multiple-saml-idp/63606 "2021-05-31T18:30:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emanuele](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/emanuele/32/12752_2.png) [@emanuele](https://community.auth0.com/u/emanuele)\
**Post date:** [May 31, 2021, 6:30pm UTC](https://community.auth0.com/t/universal-login-and-multiple-saml-idp/63606/1 "2021-05-31T18:30:26Z")

</div>

Hello, our mobile application (React Native) offers several login methods: Google, Apple, Auth0 and a SAML connection made of 8 possible identity providers (at the moment).  
In order to avoid a 10 buttons login page I was thinking about collapsing the saml authentication in a single button and then redirect to a page with the list of the idps.  
Is there any best practice for my use case? Should I re-implement a completely custom login page or there is some some way to embed a custom “SAML login” button and redirect to a “idp list” page?

Thanks in advice

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [June 3, 2021, 4:31pm UTC](https://community.auth0.com/t/universal-login-and-multiple-saml-idp/63606/2 "2021-06-03T16:31:06Z")

</div>

Hi @emanuele - for this use case we normally recommend to use Home Realm Discovery, this way you can map the user’s entered email domain to a particular IdP, so when they click login it takes them to the right external IdP login page.  
Please see below for some guidance for the New Universal Login’s “Identifier First” option, and Classic Universal Login’s (Lock) options respectively:

> **[Configure Identifier First Authentication](https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first)**
>
> Learn how to configure Identifier First authentication with Universal Login.

> **[Select from Multiple Connection Options](https://auth0.com/docs/libraries/lock/selecting-from-multiple-connection-options)**
>
> How to select different connection types for multiple login options with Lock V11.

---

<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:** [June 18, 2021, 4:32pm UTC](https://community.auth0.com/t/universal-login-and-multiple-saml-idp/63606/3 "2021-06-18T16:32:07Z")

</div>

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