Goodreads Developers discussion
bugs
>
Getting "Invalid OAuth Request" with signed requests...
date
newest »



GET&https%3A%2F%2Fwww.goodreads.com%2Fapi%2Fauth_user&a...
GET&https%3A%2F%2Fwww.goodreads.com%2Fapi%2Fauth_user&a...
The library I'm using is putting `oauth_verifier` in with the base string, whereas the google tool does not.


The library I'm using follows the specification quite closely and generally speaking if something is out of place, it's because the server I'm contacting is going outside of the spec.
Have you guys considered auditing your API and coming up with a version that follows the oauth spec properly?

So I've produced a custom driver for the library - at least in my project - that is able to work around the quirks in the goodreads API, you can find it here:
https://github.com/thephpleague/oauth...
This has me now able to generate signed requests based on some of the inconsistencies, but perhaps it can serve as an informational document to help improve your service.
Overall, just look for my double-slashed comments in the code and they explain why I'm manipulating things a certain way.

But in your case, to be fair, I really don't think the auth_verifier parameter should be there. I don't know that much about OAuth, but from what I gathered that's only included when authorizing and getting a token, not when making a regular request.
I've compared my signature base strings to the ones generated by the link I posted and when I got them to match everything worked reasonably well, albeit with a few bumps.

Sorry, thought you were goodreads staff due to your promptness ;)
```
OAuth oauth_consumer_key="MYCONSUMERKEY", oauth_nonce="2gz0uT7EJTxUEhG1gi3KqnusjDRtzEvK", oauth_signature="nQW6bAOtl8kT9lfMqinodR695DI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1458366768", oauth_token="MYTOKEN", oauth_version="1.0"
```