I have 2 software with different business logic,different database, both are multi tenant, every user has the TenantId property to identify the data of their organization
dbo.Xpto.Where(x => x.TenantId == userLogged.TenantId);
I am wanting to unify the login and implement identityserver
, I have the doubt, how will I capture the user tenantId
if it has different tenantId
in each software?
I thought of adding claims, for example new Claim ("SoftwareOne:TenantId", 123)
and new Claim ("SoftwareTwo:TenantId", "8f8b8d87-fc07-4508-a33a-2b5f55820836")
and request by Scope