Welcome to Discussion Forum, where you can ask questions and receive answers from other members of the community.

Magento: Getting 403 Forbidden response with REST API on CE 1.9.1.0

1 like 0 dislike
I'm using this link as my model for testing the REST API, and I get all the way through the authorize prompt to a "403 Forbidden" response (this is for both the customer and admin examples).
 
Invalid auth/bad request (got a 403, expected HTTP/1.1 20X or a redirect)
{"messages":{"error":[{"code":403,"message":"Access denied"}]}}
STEP 1 - I access this example URL: http://mywebsite.net/oauth_admin.php
 
STEP 2 - I see the login prompt and log in, along with seeing the token in the URL: http://mywebsite.net/admin/oauth_authorize?oauth_token=a35aa73f8bda2fce1d5d4db25628129d
 
 
STEP 3 - I get the desired authorize prompt
 
 
STEP 4 - I click authorize and I get the above 403 response
 
I have setup the REST user and role as according to the instructions at the above link, and believe I have followed all other steps - multiple times. I'm at a loss as to why this fails.
 
Has anyone else experienced this issue? I've also tried using the Firefox and Chrome API extensions with the same result.
 
UPDATE: I found that someone else solved this issue when the request was passed over HTTPS. There is nothing in the tutorials mentioning a prereq SSL. Has anyone else successfully used REST without SSL? See their solution here--> Why do I get unauthorized for REST API

 

asked Apr 6, 2017 in Magento by harsh (8,710 points)
edited Apr 6, 2017 by harsh

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Related questions

0 like 0 dislike
0 answers 114 views
114 views asked Mar 2, 2017 in Magento by harsh (8,710 points)
0 like 0 dislike
0 answers 146 views
0 like 0 dislike
0 answers 32 views
32 views asked Sep 7, 2017 in Magento by harsh (8,710 points)
0 like 0 dislike
0 answers 271 views
0 like 0 dislike
1 answer 81 views
81 views asked May 3, 2017 in Magento by harsh (8,710 points)
...