Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Closed Issue: NTLM requests get unauthorized exception because of KeepAlive false [2721]

$
0
0
We have a private NuGet repository that requires NTLM authentication. We found out that some computers can't authorized automatically because of unknown issue. We used debug on the NuGet source code to check the problem. We found that the first request uses KeepAlive false setting and it gets an unauthorized exception. If we set the KeepAlive to true, then everything works fine. We attached a patch for the problem, it stores the previous response and request as well in the RequestHelper class and we handled the issue.

if (previousResponse == null || IsKeepAliveShoudBeUsedInPreviousRequest(previousRequest, previousResponse))
Comments: Verified a private repo using NTLM authentication. (Installed NuGet.Server and host it in IIS, enable only windows authentication.) Also tried enable proxy authentication via Fiddler. Both works.

Viewing all articles
Browse latest Browse all 7612

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>