Roles available with Windows Authentication

后端 未结 4 1831
旧时难觅i
旧时难觅i 2021-01-31 22:30

I\'m trying to add Roles authentication to an Action in a Controller in an ASP.NET MVC application. The code looks something like this:

[Authorize(Roles = \"Some         


        
4条回答
  •  既然无缘
    2021-01-31 22:45

    You can use the various methods on the RoleProvider class in System.Web.Security.Roles.Provider.

    See this for more: Role Provider

提交回复
热议问题