Windows.Web.Http.HttpClient equivalent of UseDefaultCredentials #3605
Unanswered
bjorn-malmo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Calling a web service using the System.Net.HttpClient(), setting the UseDefaultCredentials to true, as in:
will automatically negotiate the currently logged on Windows user's credentials with the server (if supported by the server of course). Everything "just works"! This will even work with the credentials negotiated using a VPN connection, which is great.
How would you accomplish the same feature using the more modern Windows.Web.Http.HttpClient()?
The response I get is a 401 Unauthorized with a header indicating WWW-Authenticate: Negotiate.
Is there a default handler that can handle the negotiation?
To be clear; this should be a single-sign-on request. I don't want to ask the user for username and password.
Regards Björn
Beta Was this translation helpful? Give feedback.
All reactions