For those of you who used the code in my post here: http://www.ryanmwright.com/2010/04/25/dynamic-controlleraction-authorization-in-asp-net-mvc/
I have created a project on Codeplex for it (http://mvcauthorization.codeplex.com/). Note that this version has some major breaking changes from the code I posted in my previous post but has some major improvements, the two biggest being:
- Provider based model so that a database provider is as simple as overriding two methods on AuthorizationProvider
- A global action filter for authorization (requires DependencyResolver)
Check it out and let me know what you think. I will be adding a post to show how to integrate it with the MvcSitemap provider soon.
Follow Me