【发布时间】:2016-04-30 11:54:22
【问题描述】:
我从默认模板创建了默认的 asp.net 核心应用程序。我在创建新项目(here is what i did) 的过程中选择了 Windows 身份验证选项。当我在 issexpress 上运行应用程序时,它就像一个魅力。
当我将应用程序移至本地 iis 时,它可以工作,但它没有获取用户信息。我在 Windows 功能中启用了 Windows 身份验证。但它向我显示了空的 User.Identity.Name。我尝试将此行添加到 web.config
<security>
<authentication>
<windowsAuthentication enabled="true" />
<anonymousAuthentication enabled="false" />
</authentication>
</security>
尝试从 IIS 管理器打开 Windows 身份验证。我不知道还有什么问题。我错过了什么?
【问题讨论】:
-
我遇到了同样的问题,尝试了同样的事情......仍然没有成功。你有没有得到这个工作?
标签: iis asp.net-core windows-authentication kestrel-http-server