Invalid Signature - provided signature does not match
See original GitHub issueHere is my code. I am trying my angularJS app to interact with the Woocommerce API over HTTP (NOT HTTPS).
`var oauth = OAuth({ consumer:{ public: ck, secret: cs }, signature_method: ‘HMAC-SHA1’, last_ampersand: false });
var request_data = {
url: url,
method: 'GET'
};
var token = {
public: '370773112-GmHxMAgYyLbNEtIKZeRNFsMKPR9EyMZeS9weJAEb',
secret: 'LswwdoUaIvS8ltyTt5jkRh4J50vUPVVHtR2YPi5kE'
};
$http({
url: request_data.url,
method: request_data.method,
params: oauth.authorize(request_data, token)
}).then(function(data){
console.log(data);
}, function(error){
console.log(error);
})`
I always get the following error.
errors: [ { code: "woocommerce_api_authentication_error", message: "Invalid Signature - provided signature does not match" } ]
Any help is highly appreciated.
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
401 error - Invalid signature - provided signature does not ...
What is very weird is that sometimes the requests just work and sometimes they throw the "Invalid signature - provided signature does not...
Read more >Woocommerce REST API Status: 401 - Invalid signature
For my case, I found the issue was due to the URL used on Postman is using www., but under WordPress > General...
Read more >Problem with Rest API's in woocommerce
A Invalid signature – provided signature does not match message returned from the WooCommerce REST API indicates an authentication misconfiguration.
Read more >Why do I receive a "401 Signature Invalid" response when ...
The signature will always be considered invalid if the time is incorrect on the server you're using to generate the Authorization header. Please...
Read more >Wordpress > 0Auth 1.0 > Invalid signature > 401 - Get Help
Wordpress > 0Auth 1.0 > Invalid signature > 401 ... "message": "Invalid signature - provided signature does not match.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes. this is weird. I don’t know if you have resolved it or not!
I am getting Invalid Signature - provided signature does not match.
I have no Idea why this is happening. I use the same cs & ck on insomnia and it works…