I did quite a bit of research and tested both versions 1.4 and 2.0 of the FluentSecurity libraries, and it seems I could not use the configuration template:
configuration.For<MyController>(x => x.GetCustomer()) .RequireRole(appRoles);
when a parameter is required for my controller action, for example:
public ActionResult GetCustomer(int customerID)
Is this type of configuration supported? If so, how can I implement the role requirement for an action with the required parameter?
source share