cancel
Showing results for 
Search instead for 
Did you mean: 

Magento OAuth oauth_signature invalid (oauth/initiate)

Magento OAuth oauth_signature invalid (oauth/initiate)

Hello. I'm trying to get oauth_token with request on http://magentohost/oauth/initiate.

 

My Magento version is 1.9.2(Community Edition).

 

My trouble is I always getting oauth_problem=signature_invalid

I'm using HMAC-SHA1 signature method. There is string which i'm encode to signature:

POST%26http%3A%2F%2Fmag.prohost.wf%2Foauth%2Finitiate%26oauth_consumer_key%3Dfba24fc76a64ed3057a3e9cc8cf01083%26oauth_nonce%3D1446745286%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1446736661%26oauth_version%3D1.0%26oauth_callback%3Doob

and after encode the string i retrieve:  

f7949c9cea622e2995b5dfe9177183c3ed92b2c4

I compare this signature with few online encoders, so encode method is right.

 

Authorization header in request is: 

OAuth oauth_consumer_key="fba24fc76a64ed3057a3e9cc8cf01083",oauth_nonce="1446744571",oauth_signature_method="HMAC-SHA1",oauth_signature="59c7e971c518eac49054a635deb7d0796000881c",oauth_timestamp="1446737281",oauth_version="1.0",oauth_callback="oob"

 I'm doing this on objective-c. When i've retrieve this error i'm tried do this request in Postman and retrieve same error. All groups and consumers  are installed in Magento settings.

 

What i doing wrong? I'm search out and doesn't find solution which should help me.

Thank you in advance.

Tags (1)