我最近給維護Web應用程序的任務。我不知道在應用程序中使用何種形式的身份驗證。我想確認應用程序是否是表單身份驗證。我如何驗證這一點?如何找到一個Web應用程序是否使用窗體身份驗證或沒有?
0
A
回答
2
照照web.config
爲Web項目authentication
部分:
<authentication mode="Forms">
<forms name=".ASPXFORMSDEMO" loginUrl="logon.aspx"
protection="All" path="/" timeout="30" />
</authentication>
如果你有一個像上面的條目,那麼你的Web應用程序使用Forms Authentication
。
注:mode
屬性是你所感興趣的東西,它可以有以下值:
- 形式
- 的Windows
- 護照
- 無
讀authentication Element文檔以獲取更多信息。
0
在web.config
文件中查找<system.web>
部分,其中將包含<authentication>
標記。對於表單身份驗證,此標記將設置爲mode="Forms"
。您可以在ASP.Net中使用的不同身份驗證方法(包括Forms Authenticaiton
)上閱讀此MSDN article。
1
如果您使用的IIS版本低於7,則檢查部署的web.config是唯一方法。
您需要查找 <authentication> </authentication>
元素 - 特別是mode
屬性。
如果您使用的是IIS 7+,還可以檢查IIS管理器中的設置。
根據您的Web應用程序的Authentication
類別。
相關問題
- 1. 窗體身份驗證應用程序中的ASP.NET Web服務
- 2. ASP.NET Web API窗體身份驗證子應用程序
- 3. 錯誤日誌 - 應用程序沒有使用窗體身份驗證
- 4. Twitterizer Web應用程序身份驗證
- 5. MVC3窗體身份驗證在單一應用程序
- 6. 從Windows應用程序使用窗體身份驗證ASP.NET Web服務
- 7. 使用窗體身份驗證在ASP.NET Web窗體中路由
- 8. Dotnet:如何在窗體窗體應用程序中實現Windows身份驗證?
- 9. 從Silverlight應用程序調用WCF服務時獲取身份驗證使用窗體身份驗證
- 10. MVC 5 C#Web應用程序使用窗體或窗口身份驗證對AD
- 11. 在使用窗體身份驗證「slidingExpiration」
- 12. 部署ASP.NET VB應用程序與窗體身份驗證
- 13. lightswitch應用程序中的自定義窗體身份驗證
- 14. 從Windows窗體應用程序的ASP.NET身份驗證
- 15. 黑莓支持窗體身份驗證 - ASP.NET MVC應用程序
- 16. 使用窗口和窗體身份驗證的silverlight應用程序
- 17. 如何在整個Web應用程序中持續驗證身份驗證
- 18. 內部網Web應用程序的http或https身份驗證
- 19. 身份驗證使用Windows身份驗證上一個動作,而不是整個應用程序
- 20. 從窗體身份驗證應用程序的web api返回401消息
- 21. 如何爲RESTful Web應用程序實現身份驗證?
- 22. 使用Windows身份驗證的AngularJS Web應用程序
- 23. java web應用程序使用adfs 2.0進行身份驗證
- 24. 使用表單身份驗證保護asp.net web應用程序
- 25. 如何在我的web應用程序中使用kentor身份驗證服務進行身份驗證
- 26. 基本身份驗證,回退到窗體身份驗證
- 27. Web應用程序使用窗口域帳戶進行身份驗證
- 28. 現有.net Web應用程序需要更改身份驗證
- 29. 是否有可能在一個Java Web應用程序中有兩個身份驗證機制?
- 30. ASP窗體身份驗證