1

I'm trying to create custom Roles for my MVC4 project. But I have found that there's little about it. I have found this example . But are there any other way of defined my own Authorization Roles. Because I liked to get the User Roles from a database instead of the IIS.

Pablo Claus
  • 5,760
  • 3
  • 27
  • 38
mortenstarck
  • 2,641
  • 6
  • 40
  • 73
  • 1
    Take a look to this http://stackoverflow.com/questions/14449499/mvc-4-intranet-authentication-with-custom-roles/14466907#14466907 – Pablo Claus Jan 24 '13 at 11:39

1 Answers1

3

I needed a MembershipProvider and a RoleProvider. Also, I needed to add an extra value to my SetAuthCookie.

alex
  • 5,636
  • 9
  • 47
  • 97
mortenstarck
  • 2,641
  • 6
  • 40
  • 73