Authorize an entire security group to perform an Action in ASP.Net MVC

后端 未结 1 1083
独厮守ぢ
独厮守ぢ 2021-02-13 09:21

I\'d like to authorize users to perform specific actions within my controllers. I\'ve found the ASP.NET tutorial which explains how to allow individual users to perform specifi

1条回答
  •  别跟我提以往
    2021-02-13 09:36

    You want to use the Roles property. Note that this can be a comma-separated list of roles.

     [Authorize(Roles=@"domain\group")]
    

    0 讨论(0)
提交回复
热议问题