Parallel Usage of `OpenIdConnectClient` [Multi Tenancy]
ahmednfwela opened this issue · comments
Use case
Multi tenant applications, where a user needs to authenticate each tenant separately, but can switch between them at will.
Proposal
There are 2 possible paths here.
- An
OpenIdConnectClient
per tenant, A singleOpenIdIdentity
per client: we have to add atenantId
to each client, and provide a way to pass it to each request, similar to what firebase auth is doing. - A shared
OpenIdConnectClient
, MultipleOpenIdIdentity
per client: we need to add a way to uniquely identify/persist multipleOpenIdIdentity
s
cc @jhancock4d