Skip to content
This repository has been archived by the owner on Apr 3, 2021. It is now read-only.

Invalid OAuth signature when using DELETE #16

Open
Joren97 opened this issue May 13, 2019 · 6 comments
Open

Invalid OAuth signature when using DELETE #16

Joren97 opened this issue May 13, 2019 · 6 comments

Comments

@Joren97
Copy link

Joren97 commented May 13, 2019

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?

@rhargreaves
Copy link
Owner

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?

@Joren97
Copy link
Author

Joren97 commented May 14, 2019

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

@rhargreaves
Copy link
Owner

rhargreaves commented May 14, 2019

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!

@Joren97
Copy link
Author

Joren97 commented May 15, 2019

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

@rhargreaves
Copy link
Owner

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

@Joren97
Copy link
Author

Joren97 commented May 17, 2019

No, there are not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants