0
My application has user groups that are customizable, that is, the end user creates and puts access to certain permissions.
For that, I have my records
Module, Menu, Item, Option
Module = Financial, Registration, etc Menu = Accounts, Financial settings, etc Item = Customer, Accounts Payable, etc Option = New, Change, Delete, View
In this project, I used ASP.NET MVC4 E Forms Authentication. And to filter these custom "ROLES", I have my customizable filter in my controllers.
I don’t know if it’s clear.
Now I have a new ASP.NET MVC5 project and will use ASP.NET Identity for authorization and authentication of my users.
I wonder if in the new Asp.net Identity Roles, I have these customizable roles, or I will also have to make this filter again.
Because in the examples I’ve seen so far, the only way to check the scroll would be Authorize(Role="Name Scroll")
I looked for other examples of role, also the same way.
I saw this link, but there is the doubt, I still need to pass in my actions [Authorize(Roles="My Role")] ? Because this is customizable by the customer, I cannot pass fixed parameters, in the old Forms Authentication I used a customizable filter, and now in Identity?
– Rod
It’s the same scheme: you drift the
AuthorizeAttribute
and puts all logic within the methodAuthorizeCore
.– Leonel Sanches da Silva