u/broken-neuronsin r/dotnet • Recommends
On “POV: You're creating a SaaS business / MVP with ASP.Net 5, ReactJS & NextJS in the Frontend & SQL Server. You want to secure the whole stuff, how do you do it? Auth0? ASP.Net Identity? Simple JWT auth?”
…, not your tenant. But a user can be linked to N tenants. If you can’t determine the tenant for a user logging in, just ask them to choose (sub domain identification is however a common standard to determine tenant choice).
Check out Auth0 Organizations. It’s built for this exact purpose.
https://auth0.com/blog/introducing-auth0-organizations/
link to this video
If you’re looking for a self hosted option comparable to Azure AD B2C or Auth0/Okta then Keycloak is a good option.
There’s a great breakdown in this video (it’s in German), around ten minutes in:
link to this video…