Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

magento access denied

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 this result:

<magento_api>
  <messages>
    <error>
      <data_item>
      <code>403</code>
        <message>Access denied</message>
      </data_item>
    </error>
  </messages>
</magento_api>

I have created an admin role grant all access on all and the token authentication procedure was ok.

I've tried with magento go service, Bitnami VM and Windows installer but seems that web services are not present (I can see only user/role under Web Services).

Did you know of a magento setup with REST API working?

How can I debug this kind of error? I have tried with different REST client.

Thanks!

like image 362
user1071596 Avatar asked Sep 24 '12 15:09

user1071596


2 Answers

Did you set permissions for roles and attributes? If not check do it first magentocommerce.com/api/rest/permission_settings/

like image 128
Pragnesh Rupapara Avatar answered Sep 21 '22 14:09

Pragnesh Rupapara


I have once tested REST API for magento..

I following blogs helped me to setup the REST Api

1.first

2.second

3.third

I used RESTClient addon for firefox for testing and be sure that Oauth is enabled at server.

like image 34
chanz Avatar answered Sep 20 '22 14:09

chanz