Configuring security in ASP.NET MVC at runtime
- by Andrew
Is it possible to have security in ASP.NET MVC configurable at runtime? For example, if I have a controller that has been marked as
[Authorize(Roles="Admin")]
Is there a way to add/remove roles at runtime? Or, do you have to change it in code and re-compile?