Fix build
This commit is contained in:
parent
c77f3978d4
commit
981d040cc2
|
|
@ -56,7 +56,7 @@ namespace ServerComparison.TestSites
|
||||||
serverInformation.Listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.NTLM | AuthenticationSchemes.AllowAnonymous;
|
serverInformation.Listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.NTLM | AuthenticationSchemes.AllowAnonymous;
|
||||||
}
|
}
|
||||||
|
|
||||||
app.Use((context, next) =>
|
app.Use((context, next) =>
|
||||||
{
|
{
|
||||||
if (context.Request.Path.Equals(new PathString("/Anonymous")))
|
if (context.Request.Path.Equals(new PathString("/Anonymous")))
|
||||||
{
|
{
|
||||||
|
|
@ -71,8 +71,7 @@ namespace ServerComparison.TestSites
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
context.Authentication.Challenge();
|
return context.Authentication.ChallengeAsync();
|
||||||
return Task.FromResult(0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue