Multitenancy via AccessPolicy
Build Multitenancy with AccessPolicy
Last updated
Was this helpful?
Build Multitenancy with AccessPolicy
Last updated
Was this helpful?
Aidbox stores all the tenants in a single database and serves number of them at once. It obtains tenant-id
from each request and returns the data belonging to the tenant.
All resources have to be created with the tenant-id
tenant id
is stored within the identifier
attribute at the resource
Access policies require tenant-id
parameter in each request
Client
There are several ways to create client. We use the simplest one to do it: .
org-1
tenant resourceCreate patient providing it's tenant-id
in the identifier
property.
AccessPolicy
for multi-tenancyCreate access policy to ensure tenant-id
is provided in all requests.
Search the Patient
with the correct tenant-id
returns the resource.
Update the Patient
resource.
Read updated Patient
resource.
Delete Patient
resource.