Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant