React to WebListener settings API changes
This commit is contained in:
parent
735118bda5
commit
7caf2518ff
|
|
@ -21,7 +21,7 @@ namespace ServerComparison.TestSites.Standalone
|
|||
.UseIISIntegration()
|
||||
.UseStartup("ServerComparison.TestSites.Standalone");
|
||||
|
||||
// Switch beteween Kestrel and WebListener for different tests. Default to Kestrel for normal app execution.
|
||||
// Switch between Kestrel and WebListener for different tests. Default to Kestrel for normal app execution.
|
||||
if (string.Equals(builder.GetSetting("server"), "Microsoft.AspNetCore.Server.WebListener", System.StringComparison.Ordinal))
|
||||
{
|
||||
if (string.Equals(builder.GetSetting("environment") ??
|
||||
|
|
@ -33,8 +33,8 @@ namespace ServerComparison.TestSites.Standalone
|
|||
// modify the applicationHost.config to enable NTLM.
|
||||
builder.UseWebListener(options =>
|
||||
{
|
||||
options.Listener.AuthenticationManager.AllowAnonymous = true;
|
||||
options.Listener.AuthenticationManager.AuthenticationSchemes =
|
||||
options.ListenerSettings.Authentication.AllowAnonymous = true;
|
||||
options.ListenerSettings.Authentication.Schemes =
|
||||
AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ namespace ServerComparison.TestSites
|
|||
.UseIISIntegration()
|
||||
.UseStartup("ServerComparison.TestSites");
|
||||
|
||||
// Switch beteween Kestrel and WebListener for different tests. Default to Kestrel for normal app execution.
|
||||
// Switch between Kestrel and WebListener for different tests. Default to Kestrel for normal app execution.
|
||||
if (string.Equals(builder.GetSetting("server"), "Microsoft.AspNetCore.Server.WebListener", System.StringComparison.Ordinal))
|
||||
{
|
||||
if (string.Equals(builder.GetSetting("environment") ??
|
||||
|
|
@ -33,8 +33,8 @@ namespace ServerComparison.TestSites
|
|||
// modify the applicationHost.config to enable NTLM.
|
||||
builder.UseWebListener(options =>
|
||||
{
|
||||
options.Listener.AuthenticationManager.AllowAnonymous = true;
|
||||
options.Listener.AuthenticationManager.AuthenticationSchemes =
|
||||
options.ListenerSettings.Authentication.AllowAnonymous = true;
|
||||
options.ListenerSettings.Authentication.Schemes =
|
||||
AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue