-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
dotnet/corefx
#28105Description
This issue has been split off from #17545, which turned out to be a problem in the tool being used to observe network traffic. Other users saw similar results, but under different conditions and not caused by the testing tool. That issue will be tracked here to clearly separate the two issues.
The issue tracked here occurs with the following code, targeting .NET Core 2.0:
var creds = new CredentialCache();
creds.Add(new Uri(addy),"NTLM",new NetworkCredential(Username,Password));
var handler = new HttpClientHandler
{
Credentials = creds,
};
HttpClient client = new HttpClient(handler);
client.BaseAddress = new Uri(addy);
var response = await client.GetAsync("api/myresource");In Windows, the server receives the following headers, but does not initiate the NTLM handshake:
HTTP/1.1 401 Unauthorized
Content-Type: text/html
Server: Microsoft-IIS/8.5
WWW-Authenticate: NTLM
WWW-Authenticate: Negotiate
X-Powered-By: ASP.NET
Date: Thu, 01 Mar 2018 22:17:34 GMT
Content-Length: 1293@dbrownxc, can you provide more information on the situation in which you were able to reproduce this issue? It would be good to have full logs for the unsuccessful authentication attempt.
Reactions are currently unavailable