You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep my URL/port number in hosting.json like this:
{
"urls": "http://*:8075"
}
i would like to build my host like this:
var config = new ConfigurationBuilder()
.AddJsonFile("hosting.json", optional: false)
.Build();
var builder = WebHost.CreateDefaultBuilder(args)
.CaptureStartupErrors(true)
.UseSetting(WebHostDefaults.DetailedErrorsKey, "true")
.UseKestrel()
.UseConfiguration(config) //Will read "urls" key from hosting.json
.UseStartup<Startup>();
Then in Startup.cs, in Configure(), I would add the middleware like this:
app.UseWindowsAuthentication();
I then get this error: You need the connection filter installed to use windows authentication
The unit test shows that you need to add WindowsAuthentication middleware to ListenOptions in UseKestrel but that method also requires a URL/port number.
Any way to make it work while storing URL/port number in config file?
The text was updated successfully, but these errors were encountered:
I keep my URL/port number in hosting.json like this:
{
"urls": "http://*:8075"
}
i would like to build my host like this:
Then in Startup.cs, in Configure(), I would add the middleware like this:
I then get this error: You need the connection filter installed to use windows authentication
The unit test shows that you need to add WindowsAuthentication middleware to ListenOptions in UseKestrel but that method also requires a URL/port number.
Any way to make it work while storing URL/port number in config file?
The text was updated successfully, but these errors were encountered: