Я пишу размещенную в Service Fabric службу без сохранения состояния.
Известна ли проблема с обратным прокси-сервером ASF с аутентификацией Windows?NTLM / Negotiate не работает, однако Basic работает.Это известная проблема?Я нашел кого-то, сообщающего о проблеме здесь
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reverseproxy
return new WebListenerCommunicationListener(serviceContext, endpoint.Name, (url, listener) =>
{
MandateServiceEventSource.Current.ServiceMessage(serviceContext,
$"Starting WebListener on {url}");
return new WebHostBuilder()
.ConfigureAppConfiguration((hostingContext, config) =>
{
config.AddJsonFile("appsettings.json", optional: false);
})
.UseHttpSys(
options =>
{
// options.Authentication.Schemes = AuthenticationSchemes.NTLM |AuthenticationSchemes.Negotiate;
options.Authentication.Schemes = AuthenticationSchemes.Basic;
options.Authentication.AllowAnonymous = false;
/* Additional options */
//options.MaxConnections = 100;
//options.MaxRequestBodySize = 30000000;
//options.UrlPrefixes.Add("http://localhost:5000");
}
)
.ConfigureServices(
services => services
.AddSingleton(serviceContext)
.AddSingleton(_pipeline)
.AddAutofac())
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup<MandateServiceStartup>()
.UseServiceFabricIntegration(listener, ServiceFabricIntegrationOptions.None)
.UseUrls(url)
.Build();
}
);
Любая помощь будет отличной!
Спасибо, Анкур