You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you see Tony Rule's comment where he says "When using POST, any form parameters need to be included in the signature base string, whereas PUT method doesn't use them. http://oauth.net/core/1.0a/#anchor13"
I changed my guzzle request to use PUT instead and it worked. I am wondering if this oauth plugin should detect the request type and include any form fields in the base string.
The text was updated successfully, but these errors were encountered:
The Xero API works with XML body's, and these are never used in the signature for oauth. And the Xero API uses PUT and POST in the wrong way. They use PUT for creating a new resource and POST for updating resources. Completely backwards from the RFC's.
This plugin only takes the POST body in the signature if these are post fields, not if it is a XML or JSON body. Exactly as it should work.
I was having some issues using this plugin with the Xero API, trying to POST data. I came across this discussion - https://community.xero.com/developer/discussion/24421/
If you see Tony Rule's comment where he says "When using POST, any form parameters need to be included in the signature base string, whereas PUT method doesn't use them. http://oauth.net/core/1.0a/#anchor13"
I changed my guzzle request to use PUT instead and it worked. I am wondering if this oauth plugin should detect the request type and include any form fields in the base string.
The text was updated successfully, but these errors were encountered: