Dynamically set Roles in Authorize attribute in ASP.Net Web API

Last Reply one month ago By dharmendr

Posted one month ago

Is it possible can we do this in webapi   

[Authorize(Roles=//set dynamically)] 

Posted one month ago

As per my project i have 15 business roles, Each role assigned to one user and web api controller level  . i need to dynamically all this role for authrization