I\'m building a MVC4 application for internal use in a corporate enviroment. I use windows authentication, which works fine, but I\'m having troubles using Active Directory
I found which was the problem. After reading some info about the machine.config here I checked that I had the correct configuration applied already.
Fianlly I got it working just like this:
[Authorize(Roles = "Domain\\Group")]
public ActionResult Create()
{
return View();
}
The problem was the way I typed the groups.
I hope this can help other people.