magento access denied

后端 未结 5 995
孤独总比滥情好
孤独总比滥情好 2021-01-18 00:56

I have installed Magento 1.7.0.2 on Ubuntu 12.0.4 server and everything works.

Testing REST API with an admin role (http://1.2.3.4/magento/api/rest/products) I get t

5条回答
  •  生来不讨喜
    2021-01-18 01:37

    Thanks to chanz up there, I found the solution to my own issue.

    It doesn’t seem to accept the OAuth parameters as query string parameters. I tried sending them as HTTP headers instead and it’s going through.

    source: http://www.aschroder.com/2012/04/introduction-to-the-magento-rest-apis-with-oauth-in-version-1-7/comment-page-1/#comment-5090

    Surely, make sure you have the right settings at System > Web Services > Web Roles and System > Web Services > Web Attributes.

    It is also helpful to use the Ruby oAuth library because "it’s clean, simple and works well". See post there.

提交回复
热议问题