-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
affected-very-fewThis issue impacts very few customersThis issue impacts very few customersarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-httpsyshelp candidateIndicates that the issues may be a good fit for community to help with. Requires work from eng. teamIndicates that the issues may be a good fit for community to help with. Requires work from eng. teamseverity-minorThis label is used by an internal toolThis label is used by an internal tool
Milestone
Description
Describe the bug
The 401 WWW-Negotiate challenge happens for each request.
To Reproduce
Steps to reproduce the behavior:
- Using this version of ASP.NET Core '2.2'
- Set up HTTP.Sys with
options.Authentication.Schemes = Microsoft.AspNetCore.Server.HttpSys.AuthenticationSchemes.Negotiate;
- Run Fiddler to intercept requests
- Use a client to perform a GET
Expected behavior
The 401 WWW-Negotiate challenge happens only the first time.
Additional context
It looks like when using IIS it is possible to configure authPersistNonNTLM=true
to achieve this. See [https://blogs.msdn.microsoft.com/dsnotes/2014/02/11/iis-how-to-reduce-multiple-authentication-or-multiple-401-while-using-kerberos-for-authentication/](this link)
Side note
Performing the 401 challenge means more requests, more traffic, less performance.
Metadata
Metadata
Assignees
Labels
affected-very-fewThis issue impacts very few customersThis issue impacts very few customersarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-httpsyshelp candidateIndicates that the issues may be a good fit for community to help with. Requires work from eng. teamIndicates that the issues may be a good fit for community to help with. Requires work from eng. teamseverity-minorThis label is used by an internal toolThis label is used by an internal tool