For an upcoming project, I need a user management system that is a bit more complicated.
My site should work with consumers and providers.
Every consumer could have different roles, depending on the provider he works with.
Until now, my actions were "protected", using the implemented user management like
[Authorize(Roles = "Admin")]
Now, I will have different combinations like the roles ConsumerOnProviderA
or AdministratorOnProviderB
.
So the user-workflow will be like this:
- Login
- Select the provider to act with
- Depending on the selected provider and the defined role, interact with the site.
So not before selecting the provider, the role of the user is set.
Is there an existing (safe) implementation or workaround for such a scenario?
I hope I was able to clearly explain my goal.
Thanks Carsten