Auth0 Home Blog Docs

SSO between 2 auth0 accounts

In our project A, we are using Auth0. Our business partner has a project B and he is also using Auth0. We have different Auth0 accounts. Let’s say account A and account B.

Is it possible to setup SINGLE SIGN ON between account A and ** account B**?

Scenario:

  1. User navigates to web of project B for the 1st time.
  2. Auth0 navigates him to hosted page of account B.
  3. User logs in.
  4. User follows a feature of project B that redirects him to project A.
  5. User is logged in to account A using SSO.

Hi there zatziky!

So if you have seperate Auth0 tenants (account A/B), they’re treated as entirely different user bases. You can read a bit more on the concept of tenants in the getting started docs, but the relevant information for this question is that there is no automatic transition between Auth0 tenants - it just wouldn’t make sense.

However, you can most certainly set up a connection between accounts A and B, such that users have the option of authenticating with a profile from the other account. This article will guide you through the setup process - just keep in mind that both parties will be required to perform this setup in order to have a bi-drectional connection (users from account A are recognized by account B, and vice versa).

1 Like

Hey Josh!

Thank you for the tips. If we setup the connection between A and B using Auth0 OIDC, when a user navigates to either he will be presented with a lock similar to below one? Only one of the connections button will look like an Auth0 icon? Have you got a picture of Lock using OIDC?

image

That’s correct! When a user is presented a login page, he or she will have the option to either enter existing credentials, or use the ones already established with the other tenant.

Unlike social connections, you’re not going to get the button for free in lock. However, it’s very simple to add an element for your custom connection. Also remember that you have the ability to initiate login with the &connection parameter, so if you have a direct link from tenantA -> tenantB, that may be a suitable option as well.

1 Like