简体   繁体   English

如何在web.config中的“授权”标记中创建异常

[英]how Create a exception in Authorization tag in web.config

How i create a exception in location to allow access to page GanttViewer.aspx with other rol and others pages only with Admin rol 我如何在位置中创建例外,以允许使用其他角色访问页面GanttViewer.aspx和仅使用管理角色访问其他页面

<location path="Admin">
 <system.web>
  <authorization>
   <allow roles="Admin"/>
   <deny users="*"/>
  </authorization>
 </system.web>
</location>

Specify another Location section as you have above with the path specified all the way down to the file. 与上面一样,指定另一个“位置”部分,并一直指定到文件的路径。

For each location define the different authorization rules required. 为每个位置定义所需的不同授权规则。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM