So I've been working with DotNetOpenAuth for a while, Today I needed to add support for provider that forces me to send the secret key with Basic authentication (I've been using an old version and only Post parameters)
I've tried using ClientCredentialApplicator.NetworkCredential
, it didn't work. Then per the advice here, I've made my own ClientCredentialApplicator
.
I still didn't work, I put breakpoints in ApplyClientCredential
and they never hit.
I upgraded to the latest version (4.3.0.0), which should have this fix.
Everything works but there's no Authorization
header, and the remote server answers with 301 error (which makes me think it is the same problem as the commit - the Authorization info is not added to the request until the server answers with Unauthorized
and the provider I'm using answers with 301 when there's no Authorization
header)
ClientCredentialApplicator
, which I did, but the breakpoint inApplyClientCredential
never hits – RaderUnauthorized
response. There's a recent patch in DotNetOpenAuth that should handle that. Unfortunately it doesn't work, I've opened an issue in their github, but no responses :( And yes, that's probably the problem, because the provider doesn't answer with anUnauthorized
header, it answers with 301 and error info – Rader