Showing users only certain idp options when logging in to the application

I want to show users from different organizations different idp options. For example if one user navigates to sub1.example.com I want to show them the login with google option, whereas if another user navigates to sub2.example.com, I want them to see the Okta option. Is this possible? If not, is there a way I can do something similar to what I described?

Hi @karim-tr

Welcome to the Auth0 Community!

The desired outcome should be achievable depending on what Connections you choose to enable for each Organization, we just need to keep in mind some details. Allow me to try and make everything as clear as I can:

  • Social Connections, once enabled for an Organizations, will always be displayed as a Login option. The Display connection as a button will be enabled and greyed out, which you can check y going to the Organization → Connections → click on the Social Connection → scroll down to Connection Button;
  • Database Connections, once enabled for the Organization, will not be displayed as a Login option. When the user tries to authenticate, the process will be completed depending on the Database in which they are stored;
  • Enterprise Connections, once enabled for Organizations, CAN be toggled as login buttons for the Organizations.
  • Universal Login will be required in order to have this working, as detailed in this documentation.

This way, you can experiment with enabling Social Connections to only specific Organizations that you wish, which will in turn only show them as buttons for those, and also work with the Enterprise Connections and toggle the Display connection as a button where you wish to have it displayed and toggled off if you still require that Connection to be enabled, but do not want it to show as a login option.

Hope this helped!
Gerald

1 Like