Реализовать общую аутентификацию для многопродуктового многопользовательского приложения Asp.netCore 2.2

Я реализовал многопользовательскую архитектуру в одном своем приложении 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.

person Bhanu Pratap singh    schedule 27.03.2019    source источник
comment
Я думаю, что ваш вопрос не является настоящим вопросом кодирования. Почему бы вам не начать с создания двух разных ресурсов API в IdentityServer4 и двух разных клиентов, чтобы вы могли связать каждого клиента с ресурсом, а клиенты с одним продуктом имели доступ к одному клиенту/ресурсу одновременно?   -  person mkanakis    schedule 27.03.2019
comment
Вы имеете в виду 1 API для аутентификации, который является IS4, и еще 1 API для продукта P1 и 3-й API для продукта P2 теперь, когда мой клиент (арендатор) увеличится, я буду размещать отдельные API для каждого клиента (арендатора).   -  person Bhanu Pratap singh    schedule 28.03.2019