How to implement Permission Based Access Control with Asp.Net Core

后端 未结 3 1600
死守一世寂寞
死守一世寂寞 2020-11-29 15:56

I am trying to implement permission based access control with aspnet core. For dynamically managing user roles and permissions(create_product, delete_product etc.), they are

3条回答
  •  醉酒成梦
    2020-11-29 16:49

    For a solution that doesn't require you to add a policy for each permission see my answer for another question.

    It lets you decorate your Controllers and Actions with any custom attributes you wish, and access them in your AuthorizationHandler.

提交回复
热议问题