Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Invalid signature - provided signature does not match when using OAuth1 #94

Open
madmaxpt opened this issue May 22, 2023 · 0 comments
Open

Comments

@madmaxpt
Copy link

When synchronising a product with Woocommerce using OAuth1, we encounter an error "Invalid signature - provided signature does not match"

Woosync uses the default value of the OAuth1 client (https://github.com/OPEN-DSI/ecommerceng_woosync/blob/2022.5.3/class/client/eCommerceClientWooCommerceApi.class.php#L85) which does not include the POST parameters in the request signature (https://github.com/OPEN-DSI/ecommerceng_woosync/blob/2022.5.3/includes/oauth-subscriber-woocommerce/src/Oauth1.php#L69).

However, Woocommerce expects them (https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/includes/class-wc-rest-authentication.php#L270)

Note that always setting the parameter to true won't solve the problem because Woocommerce doesn't expect PUT parameters in method serialization.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant