asp.net mvc - MVC application to restrict one ad group -
i want restrict application accessed 1 particular ad group only. have implemented authorize attribute on controllers , web.config below. application not accessible including ad group. please help.
[authorize(roles = @"domain\adgroup")] public class homecontroller : controller <authentication mode="windows" /> <authorization> <deny users="?" /> </authorization> <rolemanager enabled="true" defaultprovider="aspnetwindowstokenroleprovider"> <providers> <clear /> <add name="aspnetwindowstokenroleprovider" type="system.web.security.windowstokenroleprovider" applicationname="/" /> </providers> </rolemanager> i have tried response given in post authorization using active directory role provider mvc4 below doesn't seem have resolved. still getting 401 unauthorised error
[authorize(roles = "domain\\adgroup")] public class homecontroller : controller
Comments
Post a Comment