本文介绍了ASP.NET成员角色web.config设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想了解在web.config中的System.Web授权标签是如何工作的,以及究竟每个属性和财产做。
I want to understand how the system.web authorization tag on the web.config works, and what exactly each attribute and property does.
例如,什么是
<system.web>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
</system.web>
具体是什么我想要做的是禁止访问的最的网站未经身份验证的用户,可以访问一些网站对于谁属于某个角色身份验证的用户,并允许完全访问从第二个角色的用户。
Specifically what I want to do is to disallow access to most of the site for unauthenticated users, allow access to some of the site for authenticated users who belong to a certain role, and allow full access to users from a second role.
推荐答案
没关系,发现它在MSDN上:
Nevermind, found it on msdn:
结果
这篇关于ASP.NET成员角色web.config设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!