Geeks With Blogs

News
Thomas Yarmer's Blog Another development blog... February 2010 Entries
Strongly Typed Roles in MVC with Authorize Attribute
Recently I was working on a project that had a large amount of roles that were going to be utilized on many different controllers and even on individual controller actions. Originally it was given to me utilizing the standard out-of-the-box way of Authorizing with MVC 1.0: //MVC’s standard authorize attribute [Authorize(Roles=”Administr... User”)] public class HomeController : BaseController { ... } I was told that role changes may occur in the future. This caused fear of the amount of work that ......

Posted On Thursday, February 25, 2010 5:52 PM

Copyright © Thomas Yarmer | Powered by: GeeksWithBlogs.net