我有一個使用Windows身份驗證的MVC3 Intranet應用程序。我現在正在使用第三方服務,可以通知我的應用程序。我已經爲這些API調用創建了一個監聽器,但不知道如何允許匿名訪問我的應用中的單個視圖。如何允許使用Windows身份驗證匿名訪問我的mvc3應用程序
我的IIS7設置如下:
Anonymous - Enabled <---------- Use Domain User
ASP.NET Impersonation - Disabled
Basic Authentication - Disabled
Digest Authentication - Disabled
Forms Authentication - Disabled
Windows Authentication - Enabled - HTTP 401 Challange
此外,在我的web.config文件,身份驗證模式設置爲Windows。
這樣說,有沒有辦法允許匿名訪問我的MVC應用程序中的單個視圖?
你有沒有找到這個解決方案? – 2015-10-02 23:53:35
@BongoSharp這個問題太老了!!!我認爲波紋管的答案已經成爲最佳解決方案。 – Nildarar 2015-10-04 05:21:19