dotnet / standard

This repo is building the .NET Standard
3.06k stars 427 forks source link

[UWP] HttpClientHandler - Digest Authentication Broken on Windows 10 PC #1774

Closed billvenhaus closed 4 years ago

billvenhaus commented 4 years ago

Just recently I found that my UWP app can no longer connect with Digest authentication on Windows 10 PCs. I'm seeing the same issue this individual posted the other day on the Microsoft Docs website. https://docs.microsoft.com/en-us/answers/questions/93105/httpclienthandler-does-not-work-for-authentication.html

The same code works fine on my Android, iOS, & Windows 10 Mobile devices. To take it a step further, the exact same UWP appxbundle that works on my Windows 10 Mobile Phone, does not work on my Windows 10 PC.

This is specific to only the UWP HttpClientHandler. On my Windows 10 PC, the HttpClientHandler in .NET Framework 4.8 still works fine.

Like I said, this is a new issue. The System.Net.Http.HttpClientHandler on UWP definitely did support Digest up until about a week ago.

My appxbundle was built with Target version 10.0.17134, Min version 10.0.15063.

I also tested with the latest & the problem still persists; Target version 10.0.18362, Min version 10.0.18362.

DOES NOT WORK

UWP on Windows 10 Pro 2004 19041.508

WORKS

UWP on Windows 10 Mobile 1709 10.0.15254.556 .NET Framework 4.8 on Windows 10 Pro 2004 19041.508 Android iOS

Here's the return response I get:

{StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { Server: lighttpd/1.4.35 Date: Wed, 16 Sep 2020 03:38:24 GMT WWW-Authenticate: Digest realm="iPolis_00:16:6C:7A:A3:80", nonce="e2f7fe3344e6b521c2b83c56aa48fc17", qop="auth" Content-Length: 351 Content-Type: text/html }}

billvenhaus commented 4 years ago

Issue has been moved to runtime repository https://github.com/dotnet/runtime/issues/42301