Configuring security in ASP.NET MVC at runtime

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2010-03-21T02:53:16Z Indexed on 2010/03/21 3:01 UTC
Read the original article Hit count: 456

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?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about security