In my Auth0 setup, I need to present multiple login buttons on the Universal Login page that both connect to the same SAML enterprise connection. The reason for

Ready to post? :magnifying_glass_tilted_right:In my Auth0 setup, I need to present multiple login buttons on the Universal Login page that both connect to the same SAML enterprise connection. The reason for this is that I have two different user roles (for example, Admin and Employee) that both authenticate through the same external Identity Provider (IdP) using the same SAML configuration. First try searching for your answer.

Hi @vikas.viswanathan,

The easiest way to achieve two separate login buttons for the same SAML IdP is to create two distinct SAML enterprise connections in your Auth0 dashboard. Make sure you give them distinct names such as saml-admin and saml-employee.

Even though both connections will point to the same external IdP, Auth0 will treat them as separate entities, which will cause Universal Login to render a button for each one.

You can assign the ‘Admin’ or ‘Employee’ role based on the button they clicked using an Auth0 Action in the Post Login flow. This code will run after the user successfully authenticates and can check which connection they used.

If you have any further questions feel free to reach out!

Have a good one,
Vlad

Thank you. That seems to solve the first problem.

Second problem is that the new button came last in the list of buttons, is the ordering based on the creation date. I am aware that we can’t change the order, But want to know on what basis it is ordered like created date or connection name or based on something else.

I am also trying to use partials to see if I can add one more button to the list of button probably on the top.

Regards

Vikas

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