【发布时间】:2011-08-11 02:27:15
【问题描述】:
这困扰着我,但我认为我将问题追溯到使用 Forms 身份验证应用程序,现在我已切换回尝试使用 Windows 身份验证,但出于某种原因只想继续使用 Forms 身份验证。
在 web.config 中就正常了,甚至尝试过 Signing Out of Forms Authentication,但仍然坚持在 Forms Authentication 中工作。
所以我在尝试 System.Web.HttpContext.Current.User.Identity.Name 时得到的结果是一个不错的空字符串,并且用户未经过身份验证。
如何恢复我的 Windows 身份验证?
干杯 迈克尔
【问题讨论】:
标签: asp.net forms-authentication windows-authentication