oauth-dotnetcore icon indicating copy to clipboard operation
oauth-dotnetcore copied to clipboard

Invalid OAuth signature when using DELETE

Open Joren97 opened this issue 5 years ago • 6 comments

Hello

I get an error "Invalid OAuth signature" when using this package to make a DELETE request. I am using the helper method "ForProtectedResource" and I am pretty sure all my parameters are correct.

Note: I am using this package to make other requests as well and all of them work. These other request use the following helper methods: "ForRequestToken", "ForAccessToken". I also use the "ForProtectedResource" when performing a GET and this does work.

Could this be a package problem or is this something else?

Joren97 avatar May 13 '19 09:05 Joren97

Could you try using https://7digital.github.io/oauth-reference-page/ to re-create your request? Does it work? If so, does the signature match the one generated from this package?

rhargreaves avatar May 13 '19 19:05 rhargreaves

Signatures do match! Another note: If i make the request using Postman and choose for Oauth 1.0 authorization, the request does work.

Joren97 avatar May 14 '19 08:05 Joren97

Interesting... there must be something super subtle about the request parameters which is causing the signature to be produced incorrectly. Can you post a screenshot of the request as laid out in the reference page? Be careful to not post actual secrets obviously, but please leave special characters in - they may be causing the problem!

rhargreaves avatar May 14 '19 18:05 rhargreaves

This is a screenshot of the filled in page. All values match the values used in code. screenshot_oauth

Joren97 avatar May 15 '19 07:05 Joren97

Are there any special characters (i.e. non-alphanumeric) in the consumer key, secret, token or token secret, aside from hyphens?

rhargreaves avatar May 17 '19 18:05 rhargreaves

No, there are not.

Joren97 avatar May 17 '19 18:05 Joren97