【发布时间】:2013-03-08 11:20:57
【问题描述】:
我有一个对所有用户开放的 MVC 4 应用程序,无需登录。 只有一个控制器,我需要通过 Web.Config 应用 Windows 身份验证,如下所示:
<authentication mode="Windows" />
<authorization>
<allow users="domain\jsmith" />
<deny users="*" />
</authorization>
控制器将 MySite.Com/MyApp/MyAdminReportController
如果可以,怎么做?
【问题讨论】:
-
听起来像
Area对我来说:sankarsan.wordpress.com/2012/04/14/…
标签: c# asp.net asp.net-mvc authentication asp.net-mvc-4