Connect Node.js to Multiple SAML IdP

Hi Everyone,

I have a simple MERN app that currently doesn’t use Auth0, but instead I’m using a basic jwt authentication.
I want to make it possible for users to use SSO with an IdP that they specify.
(make it possible for users to list my app as an SP).

I see that this is possible with Auth0, but I’m completely lost on how ( or if possible ) to do this in a MERN stack setup.

Any hints/example in this regard would be extremely helpful !

Thank you :pray: !

Hi there, for any future members looking at this topic - to enable multiple SAML IdPs (enterprise connections) to a client application, we recommend using Home Realm Discovery to map the user’s entered email domain to a particular IdP.

To make it work with Auth0-hosted New Universal Login, please take a look here: Configure Identifier First Authentication.

For integrating Auth0 with the MERN stack, we recommend following respective quick starts - Auth0.

If the Home Real Discovery does not work for you (you can’t map user email with the IdP domain), we recommend using the Organizations feature so that an IdP/IdPs can be assigned on an Organization level. Take a look here: Single Identity Provider Organizations and Multiple Identity Provider Organizations.