Multi-tenant Connection #2615
Replies: 2 comments 9 replies
-
Hey, I need the samething. But I'm trying to adjust the code to allow it, but the it's more complex then I expected. |
Beta Was this translation helpful? Give feedback.
-
Hi there @ParamThakkar and @FelipeA , thanks for raising this issue. Have you tried using the support we have for multiple data-source to make this work? You could have a database with an associated data-source in the config file, 1 for each tenant. DAB will automatically find the right database through the entity that the tenants are trying to access, and use the correct connection string for that database. Then if you setup authorization policies so that each tenant is only able to access the entities from their respective databases, everything should work as you would like. This would also make it possible for you to define tenants that can access multiple databases, depending on how you setup their authorization. |
Beta Was this translation helpful? Give feedback.
-
I want to use DAB for our Multi-tenant solution where we have a separate database per tenant. For which I want DAB to switch Connection String based on the request headers.
Is it possible in DAB?
Beta Was this translation helpful? Give feedback.
All reactions