I’m building a multi-tenant app based on vercel’s platforms example: github/vercel/platforms I’m struggling getting nextjs-auth0 to work. I’d like a single session that is shared across subdomains but haven’t been able to get that to work. Do you have any documentation on using v4 in a multi-tenant scenario like this? Thanks.
Hi @ccarse
Welcome to the Auth0 Community!
I am sorry about the delayed response to you inquiry.
If you are looking to have SSO between multiple tenants and multiple application’s, that can be hard to accomplish. Auth0 does not offer an out-of-the-box solution regarding integrating multi-tenant SSO with multiple applications. SSO is intended to work between applications inside a single tenant because the user accounts and sessions would be shared only within the tenant.
Otherwise, if you are using a connection like SAML, you can have an Auth0 tenant as an SP and another one acting as the IdP. This way, you will accomplish an multi-tenant SSO using 2 tenants and 2 applications which have the connection enabled. You can read more about that in our documentation.
You can also read more about multi-tenancy here.
If you have any other questions, feel free to leave a reply!
Kind Regards.
Nik
When I say multi tenant app I’m not talking about how auth0 uses that terminology I’m using how vercel uses that terminology in their platforms example. So, we have a single next.js app hosted at a root domain and each of our users have their own subdomain at which they use the site.
Hi again,
Thank you for the extra info, sorry about the confusion.
I will investigate regarding Auth0 NextJS and Vercel scenario. I will come back with an update as soon as possible. In the meantime, I believe the following resources might be helpful regarding the matter:
- How to Build a Multi-Tenant App with Custom Domains Using Next.js
- Set up your multi-tenant app with Vercel & Auth0
- New Auth0 Integration for Vercel: Available Now
- NextJS Auth0 SaaS Starter
- How to Deploy a React App Secured By Auth0 to Vercel
If you have any other questions, feel free to let me know!
Kind Regards,
Nik
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.