![](/img/trans.png)
[英]asp.net c# web app with active directory and windows authentication
[英]c# windows authentication for a asp.net web interface
我需要對Web界面asp.net進行Windows身份驗證。
我已經設置了等於Windows的配置身份驗證模式。
對於Windows身份驗證,我們只需要設置以下內容:
- <authentication mode="Windows" />
在IIS中,我們需要:
-刪除匿名訪問
-檢查集成的Windows身份驗證。
Windows身份驗證是否需要其他任何東西?
如何獲取用於C#驗證的用戶名?
謝謝
不,在asp.net應用程序中Windows身份驗證不需要任何其他操作(假設您只需要身份驗證而不是模擬)。 您現在可以從以下位置獲取用戶的身份
(WindowsIdentity)HttpContext.Current.User.Identity;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.