Magento Rest API Oauth authorization

Leave a comment

July 10, 2015 by jegadeesh29

Steps to follow oauth authorization in Magento rest api

1.Create consumer on back end System->REST – Oauth consumer

Consumer key Consumer secret

Consumer key
Consumer secret

2.By add consumer get auto generated

(i)Consumer key

(ii)Consumer Secret

3.Request for token:

http://magentohost/oauth/initiate

Add params  oauth_callback:http:\\magentohost/adminScreenshot from 2015-07-10 15:09:35

4.By send this token request you will receive

(i)oauth_token

(ii)oauth_secret

Screenshot from 2015-07-10 15:10:01

5.oauth_token passing in get method

http://magentohost/admin/oauth_authorize

   oauth_token:token value got in previous step.

6.The response will be the login page.

7.Find form_key in html source code which is in the hidden input value.

And passed to post method.

  form_key:value

  login[username]:value

  login[password]:value

Screenshot from 2015-07-10 16:41:10

8.Confirm :

Final step will be confirmation after getting Authorize application.Application request access to your account.

Screenshot from 2015-07-10 16:44:49

Reference:

1.http://www.widecodes.com/CyVqkVqXPW/how-to-use-postman-rest-client-with-magento-rest-api-with-oauth-how-to-get-token-and-token-secret.html

2.http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: