• Resolved stathisaska

    (@stathisaska)


    Hello everyone,

    I am trying to integrate with WC using REST API.

    Unfortunately, due to a bad hosting solution selected, I cannot install SSL on the sandbox domain. Only on the main domain, but at the moment this project is just starting.

    So I am using the http authentication with oAuth1, but I get the following response

    {
    “code”: “woocommerce_rest_authentication_error”,
    “message”: “Invalid signature – provided signature does not match.”,
    “data”: {
    “status”: 401
    }
    }

    I am using Postman to send the request, the key/secret are definitely correct, I am doing exactly what this guy does in this post, but I can’t get list of orders.

    The server is nginx/1.15.6, I have tried creating new keys, tried passing parameters on url, tried a terminal curl command. No successful results until now. Can it be a problem/configuration on the server I need to request from my hosting provider ? Their support is abysmal, I contacted them and the response I got was “Where exactly do you see this error” LOL and I never use the LOL abbreviation for the last 10 years.

    I ‘ve lost almost a day on this, I am desperate.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @stathisaska,

    Have you tried using basic auth with Postman instead? You can enter the key/secret into the username/password fields and submit your request that way.

    basic auth

    I often do that when testing out something with the REST API and it typically works well.

    Let me know if you still run into trouble.

    Thread Starter stathisaska

    (@stathisaska)

    This works with https. My problem is referring to the oAuth1 for the http request

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @stathisaska

    This doesn’t appear to be a problem with WooCommerce core. I’d suggest you get with your hosting company to see if there is anything more that they can help to authenticate the request for the staging site.

    Thread Starter stathisaska

    (@stathisaska)

    Hello @johndcoy

    I deployed an SSL, skipped the oAuth1 authentication and now everything is working like a charm. However,I need to say that oAuth1 doesn’t seem to work. Not in Postman, not in terminal not anywhere.

    • This reply was modified 4 years, 9 months ago by stathisaska.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘API oAuth1 error’ is closed to new replies.