0

I would like to implement an authorization based on a custom resource code on the new ASP Core for controller classes and methods. Roles on my project are not static.

Something Like:

[Authorize(PermissionsEnum.AccessXYZScreen)]

And if that Role has that permission grant access. This was quite simple on the previous version.

I have read How do you create a custom AuthorizeAttribute in ASP.NET Core? and https://docs.asp.net/en/latest/security/authorization/index.html but none of them fit my needs.

Community
  • 1
  • 1

0 Answers0