Я реализовал мультитенантную архитектуру в одном приложении ERP.
Я доволен этим обучением.
несколько баз данных с собственными таблицами идентификации должны соединяться с одним веб-API и проверять токен jwt
Сейчас я планирую создать систему, которая должна поддерживать мультитенантность для нескольких продуктов с общей базой пользователей.
Take a scenario, There is a company ABC which owns 2 Products P1 and P2. Now this company selling these products to several customers including (C1,C2,C3)
**Customer|Products**
C1|P1
C2|P1,P2
C3|P2
*Each Customer has its employees obviously, Specially in C2
Employee E1 has its emailId.
Now E1 must login on customer site www.ABC.C2.com which looks like google now (gmail is P1, translate is P2) on right menu when it clicks on any P1/P2 icon without login it should be redirected to a login page which is common as Authentication DB is common for all users all Customer's Products. if its authenticated it must move to the dashboard of that P1 products site.
In case not authenticated it should display an error message.*
P1 and P2 has separate APIs for each customer, sometimes common also, which has actions but those must be authorized as per user roles on customer and product basis
Authentication DB and API is common for all.
I want your assistance and guidance over it.
Please try to guide me over it.