Branislav B.
Branislav B.

Reputation: 557

Multi-organization solution with identityserver4

I've got following setup:

Does anyone have experience setting up something similar ? My question would be how to authorize the calls at API level to make sure he is only editing entities that belong to his organization.

Thanks !

Upvotes: 1

Views: 291

Answers (1)

d_f
d_f

Reputation: 4859

One way could be to use a tenant claim within each bearer token, so that when a user changes an organization on the portal (in case one user has access to several orgs), you perform relogin to the chosen tenant, or just request a new access token with a chosen tenant_id inside.

You can use this and this answers for the reference on how to pass a custom parameter (such as tenant id) with your request to Identityserver.

Upvotes: 1

Related Questions