Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiTenant Applicaiton Authorization #47

Open
eslamo opened this issue May 10, 2022 · 1 comment
Open

MultiTenant Applicaiton Authorization #47

eslamo opened this issue May 10, 2022 · 1 comment

Comments

@eslamo
Copy link

eslamo commented May 10, 2022

Hi,

I'm asking for how about multitenant apps how can I implement Balea to authorize depending on the user permission for the specific tenant.

tenant Id sent throw headers to API request cause the front end is using Blazor WASM.

@unaizorrilla
Copy link
Collaborator

Hi @eslamo

Nice to see your comment! Well, unfortunately Balea does not cover a multi-tenancy scenario out of box but I think you can accomplish this without a hard work. The idea to do this could be:

  • Create a specific Store like our entity framework store where you can add a new parameter for specify the tenant Id and the implementation of this store response the authorization results based on this new parameter.
  • Include on the user claims principal the tenant id to move on the new store.

Hope this help!
Unai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants