【发布时间】:2009-03-03 17:37:44
【问题描述】:
使用 Active Directory / Windows 集成身份验证是给定的。从开发的角度来看,使用它的最佳方式是什么?
是通过配置吗?
<location path="SecurePage.aspx">
<system.web>
<authorization>
<allow roles="MyDomain\My Secure Users" />
<deny users="*" />
</authorization>
</system.web>
</location>
是通过code吗?
User.IsInRole(@"MyDomain\My Secure Users");
将其存储在数据库中是个好主意吗?那么授予新用户/组可以通过自定义应用程序完成吗? (我问这个是因为这是现状。)这个想法有什么问题?
【问题讨论】: