👋🏼 Is there a way to do Organizations similar t...
# general
h
👋🏼 Is there a way to do Organizations similar to WorkOS or 0Auth?
r
Hey @HarryET
We are working on that feature, but until we release that, you can customise supertokens to add a tenantId for each user
As a quick example, if a user is doing email password login, you can override the sign up / in api on the backend SDK to append the user’s tenantid to their email (like user+tenantId@example.com)
h
But for SSO with each org having its own provider?
r
Yea. That’s also possible. We also have an example app for this (through customisations)
h
Could you send me the example?
Essentially, you need to store SSO config per tenant in your own db, and fetch that config during login based on tenantId.
You would also need to modify the SSO userId to append the tenant id of that user (again, shown in the example app)
h
Is there a time-line for multitenant support with user-pools?
r
Well, 1-2 months perhaps. But this is not a hard deadline for us.
h
Of course, just wondering as it may not be too urgent for me so waiting should be okay
just looking at all options right now but 0Auth is hella expencive lol
r
Yeaa.
h
althought you do get some niceties for it
not really worth the pricetag imo
r
Fair enough. How many orgs / end users are you expecting for your app?
h
Not too sure but I believe we are looking at 10+ to start
i'd like to design in a way that can scale to whatever though
r
Cool
h
Right now the backend uses just Email+Pass but I'm looking at a re-write in Elixir so thought might be a good time to support SSO if it can be done quick and easy
r
Ahh I see
h
but I can hold off on that re-write as it's non essential just was a bit of a nice to have thing
i'd rather wait for all the peices to fall into place and do it once
r
Makes sense
h
Thanks for the speedy support, deffo a ⭐ from me and I'll keep my out for multi-tenant support
r
Thanks 🙂