Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new exception handling logic for SocketsHttpHandler differences #2668

Merged
merged 4 commits into from
Mar 26, 2018

Conversation

mconnew
Copy link
Member

@mconnew mconnew commented Mar 10, 2018

Added changes needed for failure modes with SocketsHttpHandler as it throws different exceptions than the previous HttpClientHandler implementations.
Switched to using CredentialCache to restrict credentials to a single authentication mechanism. This matches the full framework behavior.
Improved the DigestAuthentication request validation to fail if the client sends authentication headers which aren't digest.

@mconnew mconnew added the PR DO NOT MERGE If for whatever reason you do not want a PR merged. label Mar 10, 2018
@mconnew
Copy link
Member Author

mconnew commented Mar 10, 2018

Only test failing now looks to be digest authentication. This is likely a protocol error in either the WCF service side digest authentication component I wrote or the digest protocol support in SocketsHttpHandler. I'll investigate to work out which it is.
Edit: The problem was SocketsHttpHandler was sending a Basic auth header and the test Digest authentication handler was presuming either no authentication or digest authentication.

@mconnew mconnew force-pushed the ChangesForSocketsHttpHandler branch 2 times, most recently from 9f8a0cd to 2c1764f Compare March 23, 2018 05:30
@mconnew
Copy link
Member Author

mconnew commented Mar 23, 2018

@dotnet-bot test outerloop Windows_NT

@mconnew mconnew force-pushed the ChangesForSocketsHttpHandler branch from 2c1764f to fac0502 Compare March 26, 2018 06:19
@mconnew mconnew removed the PR DO NOT MERGE If for whatever reason you do not want a PR merged. label Mar 26, 2018
@mconnew mconnew requested a review from KKhurin March 26, 2018 06:53
@mconnew mconnew merged commit 0954aaf into dotnet:master Mar 26, 2018
StephenBonikowsky added a commit to StephenBonikowsky/wcf that referenced this pull request Aug 15, 2018
* HttpClientHandler for uap does not support a non-NetworkCredentialManager type.
* #if/#endif ...ing the piece of code that is causing this PNSE error.
* Regression was introduced via: dotnet#2668
StephenBonikowsky added a commit to StephenBonikowsky/wcf that referenced this pull request Aug 16, 2018
* HttpClientHandler for uap does not support a non-NetworkCredentialManager type.
* #if/#endif ...ing the piece of code that is causing this PNSE error.
* Regression was introduced via: dotnet#2668
StephenBonikowsky added a commit to StephenBonikowsky/wcf that referenced this pull request Aug 16, 2018
* HttpClientHandler for uap does not support a non-NetworkCredentialManager type.
* #if/#endif ...ing the piece of code that is causing this PNSE error.
* Regression was introduced via: dotnet#2668
StephenBonikowsky added a commit to StephenBonikowsky/wcf that referenced this pull request Aug 16, 2018
* HttpClientHandler for uap does not support a non-NetworkCredentialManager type.
* #if/#endif ...ing the piece of code that is causing this PNSE error.
* Regression was introduced via: dotnet#2668
@mconnew mconnew deleted the ChangesForSocketsHttpHandler branch September 27, 2019 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants