Web サイトとしてインストールされた IIS 上の Netcore アプリで統合セキュリティを使用できません

Web サイトとしてインストールされた IIS 上の Netcore アプリで統合セキュリティを使用できません

私は、CNTLM 経由でログインしたユーザーを返す、netcore (2.1.401) の小さなテスト プロジェクトを持っています。[このガイド] に従って、それを IIS サーバーに展開しました。また、Web サイトを hosts ファイルに追加しました。

Anonymous authデフォルトの Web サイト内にアプリケーションとして展開すると、正常に動作します。しかし、無効と有効の状態で Web サイトとして展開しようとするとWindows auth、資格情報を複数回入力する必要があり、最終的に次のエラーが発生します。

HTTP Error 401.1 - Unauthorized

You do not have permission to view this directory or page using the credentials that you supplied.

Detailed Error Information:
Module   WindowsAuthenticationModule 
Notification   AuthenticateRequest 
Handler   aspNetCore 
Error Code   0xc000006d 
Requested URL   http://iis.localhost.net:80/user 
Physical Path   C:\inetpub\wwwroot\iis\user 
Logon Method   Not yet determined 
Logon User   Not yet determined 

次のように、web.config ファイルに自分自身を追加してみました。

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <location path="." inheritInChildApplications="false">
        <system.webServer>
            <handlers>
                <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
            </handlers>
            <aspNetCore processPath=".\iis.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
            <security>
                <authorization>
                    <allow users="mydomain\myuser" />
                    <deny users="*" />
                </authorization>
            </security>
        </system.webServer>
    </location>
</configuration>

Windows Server 2016 Datacenter、IIS 10.0.14393.0を使用しています

関連情報