I am hosting multiple sites which are not related but all need the same kind of logon capability provided by dex. I.e., an option for email and password auth or any of the popular third parties.
The sites will not share logons and have to maintain user profiles in the site itself. I'd like to keep auth separate but I'd like to know the best approach for this scenario of multi-tenancy.
Some approaches I've considered:
- An instance of dex per site, each using their own local database etc. (This seems a bit overkill.)
- A single oauth2 backend behind a single instance of dex which is in effect the "local" login and implement the multi-tenancy in the custom oauth2 server.
- Attempt writing multi-tenancy into the dex local provider, I'm not familiar with the code base as of yet and don't have any estimation of what that would take.
- Forgo dex in this scenario and embed a solution into each site as a library.
Or maybe something else?
Best,
James