开发者

Help with Authorize(Roles=)] MVC 3 Windows Authentication

开发者 https://www.devze.com 2023-03-22 13:42 出处:网络
I am having problems with Authorize attribute in MVC 3 with Windows Authentication.When I decorate a controller with the [Authorize] attribute a specify a role, the Authorization always returns false

I am having problems with Authorize attribute in MVC 3 with Windows Authentication. When I decorate a controller with the [Authorize] attribute a specify a role, the Authorization always returns false when I know the user is 开发者_开发技巧a member of the role I specified. Am I missing something? Does anybody have some examples of how they used [Authorize] attribute in MVC 3 with Windows Authentication? Thanks for the help......


[Authorize(Roles = "Admin")]

Should be enough

0

精彩评论

暂无评论...
验证码 换一张
取 消