White-Label Authentication: Show Custom Domains Instead of Login.MyDomain.com

Hi everyone,

I’m using Auth0 for authentication in my MERN SaaS app that supports a white-label feature. Here’s how my setup works:

  1. Users provide custom domains and add a CNAME record pointing to our dashboard (e.g., app.customer.com → app.mydomain.com).
  2. In my Auth0 Application settings, I have added these domains under Allowed Callback URLs, Logout URLs, and Web Origins.
  3. I have configured a custom domain (login.mydomain.com) in Auth0 and am not using the default Auth0 subdomain (dev-xxxx.us.auth0.com).

Issue:

When users log in from their custom domains (app.customer.com), they are redirected to login.mydomain.com instead of seeing a login page under their own domain. Ideally, I want users to see something else instead of login.mydomain.com, preferably their own custom domain (login.customer.com).

Questions:

  1. Is there a way to dynamically show a login page on each user’s custom domain (login.customer.com) instead of login.mydomain.com?
  2. Can Auth0 support multiple custom login domains in a single tenant, or is there an alternative approach?
  3. Would Embedded Login using Auth0 SDK be a better solution to keep users on their domain? If so why it asks to configure a custom domain?

I’d appreciate any insights or best practices on how to handle this. Thanks!

Hi @ibrahim.a

Welcome to the Auth0 Community!

Unfortunately, there is no out-of-the-box solution regarding implementing a White-Label-Authentication for your users using Auth0 since that level of branding is tenant-wide. That means you would need a multi-tenant environment to handle such a feature. As far as I am concerned, in order for you to accomplish this use case, you would need to be under an Enterprise plan since an Essentials or Professional plan are quite limited. Otherwise, you would need to come up with your own implementation in order to achieve this however you might reach certain limitations or problems.

If you want to know more about a multi-tenant approach, I would advise you to review this community post regarding the matter: Whitelabel within multi tenancy

You can also read more about Embedded login here: Centralized Universal Login vs. Embedded Login

I would highly recommend to submit a product feedback regarding this since it sounds like a great idea in order to have this item on our roadmap.

If you have any other questions, feel free to let me know!

Kind Regards,
Nik

1 Like

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