【问题标题】:asp.net core windows authentication on local iis本地 iis 上的 asp.net core windows 身份验证
【发布时间】: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


【解决方案1】:

在web.config中,你放了吗

<authentication mode="Windows" /> 

也在 system.web 领域?

【讨论】:

    【解决方案2】:

    我可以解决这个问题。我在本地 iis 上打开了 windows 身份验证功能,之后本地身份验证就像一个魅力。 Here 是一篇很好的文章如何做到这一点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-28
      • 1970-01-01
      • 2014-02-05
      • 1970-01-01
      • 2019-01-04
      相关资源
      最近更新 更多