Margaal

Margaal

  • 1.5k
  • 139
  • 86.5k

how to handle permissions in ASP.NET Core?

Jul 8 2019 5:12 AM
Hi. I am on an ASP.NET CORE MVC project in which I manage user accounts with Identity and where each user has a role ("Admin" and "User"). Now, I would like to put a permission system that will allow users of the "Admin" role to specify the user rights of the "User" role. For example, to forbid an account of the role "User" not to register the products, but to read them only.
I searched but I have no idea how to implement such a system. Can you help me with a tip or an idea?
Thank you

Answers (3)