.NET Core 3.0 Blazor应用程序Windows身份验证不起作用

时间:2020-01-13 14:10:15

标签: asp.net-core blazor-server-side

我有一个使用Windows身份验证的Blazor服务器端应用程序,该应用程序不适用于已发布的版本。当我正常访问该网站时,Chrome(和IE)会提示我输入用户名和密码。输入凭据并单击“登录”后,它会刷新提示并再次询问我。

当我使用IISExpress从Visual Studio启动站点来调试站点时,我没有遇到这个问题。应用启动后,我就可以进入。

这种行为应该是我在生产版本中看到的吗?

更新

一些其他信息:

ApplicationPool:
  - .NET CLR Version: No Managed Code
  - Managed Pipeline: Integrated
  - Identity: NetworkService

Site:
  - Authentication Rules
      - Anonymous Authentication: Disabled
      - Basic Authentication: Disabled, Response Type: HTTP 401 Challenge
      - Digest Authentication: Disabled, Response Type: HTTP 401 Challenge
      - Windows Authentication: Enabled, Response Type: HTTP 401 Challenge

ASP .NET Core App:
  - Anonymous Authentication: Disabled
  - Windows Authentication: Enabled

Environment:
  - IIS Server is on computer that is part of the domain
  - AD User is logged in to computer

0 个答案:

没有答案