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

Resolving Users & Roles from various tenants #1

Open
weedkiller opened this issue Jul 2, 2018 · 2 comments
Open

Resolving Users & Roles from various tenants #1

weedkiller opened this issue Jul 2, 2018 · 2 comments

Comments

@weedkiller
Copy link

Hi, I followed this dwon from SO. Can you include some guidance on how would we handle resolving the users and roles across the tenants

@riscie
Copy link
Owner

riscie commented Jul 2, 2018

Hi!
Yeah this example just shows how to use diffrent db's and change them based on some property of the http request. If you want to build a system with users / roles, I would have a look at Identity (https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-2.1&tabs=visual-studio%2Caspnetcore2x).

In my case, I do use jwt to authenticate the user. The user is than related to a tenant, which I use to know which db I need to read/write to.

I hope this helps?

Kindly, riscie

@weedkiller
Copy link
Author

Hi, any chance we could look into putting query filters into your templates samples. In the link if you scroll down it shows us how to achieve it. Issue with that framework is that its over complicated

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