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

Multitenancy in contrib/auth #179

Open
plunkettscott opened this issue Dec 11, 2023 · 0 comments
Open

Multitenancy in contrib/auth #179

plunkettscott opened this issue Dec 11, 2023 · 0 comments

Comments

@plunkettscott
Copy link

it would be great for the built-in auth package to provide support for multi-tenancy, where an Actor exists for each tenant or is otherwise aware of its permissions in each tenant.

I believe a workaround now is to instantiate custom repositories that automatically add a specific filter to existing queries, like filtering by tenant ID. This would allow calling Fetch on the ActorRepository to scope the query to the tenant set on the repository.

I’m still trying out some APIs to bring this into a more first-class feature, but I wanted to get this out here in case anyone else has existing ideas on how to do this.

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

1 participant