Invalid HMAC OAuth Django App

Bwarz
New Member
1 0 0

Hello,

I created a shopify partner app with django. i'm trying to obtain a permanent token.

I'm using this: https://github.com/shopify/shopify_python_api

I get redirected on the expected url containing the hmac, code, timestamp.. but when I try to request a permanent token from this by calling request_token() I keep getting this exception: Invalid HMAC: Possibly malicious login

Here is my code: https://pastebin.com/FCaSFJ0L

For the shared secret I'm using my API Secret Key, could it be the wrong one ?

0 Likes
JackChen
New Member
3 0 0

i get the same problem, do you fix it and how?


@Bwarz wrote:

Hello,

I created a shopify partner app with django. i'm trying to obtain a permanent token.

I'm using this: https://github.com/shopify/shopify_python_api

I get redirected on the expected url containing the hmac, code, timestamp.. but when I try to request a permanent token from this by calling request_token() I keep getting this exception: Invalid HMAC: Possibly malicious login

Here is my code: https://pastebin.com/FCaSFJ0L

For the shared secret I'm using my API Secret Key, could it be the wrong one ?


 

0 Likes