oauth-dotnetcore
oauth-dotnetcore copied to clipboard
Invalid OAuth signature when using DELETE
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?
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?
Signatures do match! Another note: If i make the request using Postman and choose for Oauth 1.0 authorization, the request does work.
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!
This is a screenshot of the filled in page. All values match the values used in code.
Are there any special characters (i.e. non-alphanumeric) in the consumer key, secret, token or token secret, aside from hyphens?
No, there are not.