'ASP .NET Core 6 with Windows authentification - don't show user login prompt dialog

I've created an ASP .NET Core 6 Web App with Windows authentification from a template enter image description here and I assume that current Windows user's credentials to be obtained automatically.

Application is working that way while debugging in Visual Studio 2022 (in Debug) enter image description here But when being deployed on a server (Windows Server 2012 R2+IIS 8.5) in a local network - user login prompt dialog appears enter image description here

How to get rid of this dialog and force my application to get current Windows user's credentials autimatically?

Thank you in advance.



Solution 1:[1]

This is a system setting on the client. On Windows, find it in Control Panel => Internet Options => Security => Local Intranet => Sites => Advanced. Make sure your domain name or IP address is in this list.

If this is not your problem, there's a long discussion of the server configuration for Windows authentication here

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 bbsimonbb