React to WebListener AllowAnonymous API change.

This commit is contained in:
Chris R 2016-08-08 09:50:32 -07:00
parent 0d15c62754
commit a8bc80e6b2
2 changed files with 4 additions and 2 deletions

View File

@ -33,8 +33,9 @@ namespace ServerComparison.TestSites.Standalone
// modify the applicationHost.config to enable NTLM.
builder.UseWebListener(options =>
{
options.Listener.AuthenticationManager.AllowAnonymous = true;
options.Listener.AuthenticationManager.AuthenticationSchemes =
AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM | AuthenticationSchemes.AllowAnonymous;
AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM;
});
}
else

View File

@ -33,8 +33,9 @@ namespace ServerComparison.TestSites
// modify the applicationHost.config to enable NTLM.
builder.UseWebListener(options =>
{
options.Listener.AuthenticationManager.AllowAnonymous = true;
options.Listener.AuthenticationManager.AuthenticationSchemes =
AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM | AuthenticationSchemes.AllowAnonymous;
AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM;
});
}
else