My web application Myvp.net Core mvc requires Windows authentication. In development, on IIS Express, everything works fine thanks to this setting
launchSettings.json
"iisSettings": { "windowsAuthentication": true, "anonymousAuthentication": false, "iisExpress": { "applicationUrl": "http://localhost:61545/", "sslPort": 0 } }
When deployed to IIS, I get a blank page. A request to my site will receive an error code 500.
I tried adding this configuration to Startup.cs as described here , without success.
services.Configure<IISOptions>(options => { options.ForwardWindowsAuthentication = true; });
When I look at the authentication settings directly in IIS, Windows authentication is activated.
I found a post about a package called Microsoft.AspNetCore.Server.WebListener , others about implementing custom middleware. I can not imagine that this basic function requires a lot of effort to work. Did I miss something?
iis asp.net-core windows-authentication
Nicolas boisvert
source share