[英].NET WebApi HttpClient not sending Windows Authentication credentials to same domain
[英]windows authentication for multiple user in same domain
我希望所有來自同一域名的用戶:XYZ訪問下面的我的應用程序是我的代碼。
<system.web>
<compilation debug="true" targetFramework="4.0" />
<authentication mode="Windows" />
<authorization>
<allow users="XYZ\HOW TO GRANT ACCESS TO ALL THE USERS HERE?" />
<deny users="*" />
</authorization>
<identity impersonate="true" />
</system.web>
您可以使用域用戶
<authorization>
<allow roles="XYZ\Domain Users"/>
</authorization>
試試這個,並禁用匿名身份驗證,只啟用集成Windows身份驗證。
`<authentication mode="Windows" />
<authorization>
<allow roles="XYZ\Domain Users" />
<deny users="*" />
</authorization>`
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.