Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting signature mismatch when requesting my user after getting access token #203

Closed
jasonmerino opened this issue Feb 18, 2017 · 1 comment

Comments

@jasonmerino
Copy link

I'm not sure if this is an issue for this repo or for the main WP-API repo, but I've got a problem where I have gone through all the authentication steps here and have received an access token and token secret but when I go to request my user from http://mysite.com/wp-json/wp/v2/users/me I keep getting a 401 with json_oauth1_signature_mismatch in the JSON response.

I'm not completely sure that I'm sending the request to get my user correctly, but I haven't been able to find a good guide yet on how requests should be formatted after getting the access token in OAuth 1 (aside from this oauth.net spec).

My app is in React Native so all my requests are done with the Fetch API as I was having a difficult time finding a good OAuth 1 client which would support Wordpress REST API OAuth.

If I could just get help in how that request to get my user is supposed to be formatted, even a CURL command that I could translate to Fetch, that would be so helpful.

Thanks!

@joehoyle
Copy link
Member

Closing as dupe of #200

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

No branches or pull requests

2 participants