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:
- Users provide custom domains and add a CNAME record pointing to our dashboard (e.g.,
app.customer.com → app.mydomain.com
). - In my Auth0 Application settings, I have added these domains under Allowed Callback URLs, Logout URLs, and Web Origins.
- 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:
- Is there a way to dynamically show a login page on each user’s custom domain (
login.customer.com
) instead oflogin.mydomain.com
? - Can Auth0 support multiple custom login domains in a single tenant, or is there an alternative approach?
- 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!