Search code examples
asp.netasp.net-mvc-4asp.net-roles

ASP.NET MVC 4 Roles


what is the best way to manage roles in MVC 4? I found this tutorial:

http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-7

but I want to be flexible and add the back office user the power to create and assing roles to registred user.

Many thanks


Solution

  • I don't think that the framework provides an out of the box solution for managing users and roles. It should however be quite easy to roll your own, especially if you use the new SimpleMembership provider.

    You can also take a look at the SecurityGuard project, which seems quite nice, but I haven't tried it yet.