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
Hi @Rajags, I had the same problem. I tried requests-oauthlib, which seems to be more maintained, but it's happening there too. I could debug it for rauth. The problem is described in this comment requests/requests-oauthlib#257 (comment)
As a workaround, I did an override of SignatureMethod::_normalize_request_parameters()
def_normalize_request_parameters(self, oauth_params, req_kwargs):
""" This is a workaroud. Rauth do encode a space in params as + in the query string and as %20 for the signature. On the server side, the Zend Framework computes the signature from the query string with space encoded as +. This leads to a signature mismatch. """original_response=super()._normalize_request_parameters(oauth_params, req_kwargs)
returnoriginal_response.replace('%20', '%2B')
Note that for magento, the signature algorithm must also be adapted to use HmacSha256.
The text was updated successfully, but these errors were encountered: