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
@chrisbottin - I have the same issue (POST requests are being rejected due to authentication failings) and I believe it's due to the construction of the Authorization header.
I believe this is the same as what you're specifying, but I attempted your change, but it did not make a change, as I don't believe the method calling authHeader() has been updated to include extra_params.
Would be good to understand if you achieved success with this and/or a further change was required?
@ugpeterauthHeader doesn't yet accept the extra_params parameter.
I suggest you change your code to use oauth._prepareParameters(token, secret, method, url, params) instead of oauth.authHeader(url, token, secret, method). This is what I'm doing until a fix is applied.
The OAuth
authHeader
method https://github.com/ciaranj/node-oauth/blob/master/lib/oauth.js#L574 is not accepting aextra_params
required to create a valid signature for POST requests with url encoded form parameters.The solution is straightforward and it would just require to add the
extra_params
params in the method...Before the fix
After the fix
I'm happy to create a pull request if it's likely to be approved and merged, please advise.
The text was updated successfully, but these errors were encountered: