I am doing OAuth1 authentication for Magento2.0. I am referring this doc: https://devdocs.magento.com/guides/v2.0/get-started/authentication/gs-authentication-oauth.html.
I am trying to do this using Postman. I have followed steps mentioned in : Magento 2: Where does the oAuth verifier token come from
1. Get request token: I could get it using Consumer key and consumer secret generated by integration and POST /oauth/token/request.
Response was: oauth_token=xxxxx&oauth_token_secret=xxxxx
2. Get oauth_verifier: Got the oauth_verifier using POST http://mywebsite.com/rest/V1/integration/admin/token. Used consumer key,consumer secret, request token and request token secret along with payload: { "username":"[email protected]", "password":"mypassword" }
3. Get access token: When I try to get the access token I face some issues. Added oauth_verifier to Authorization Header.
Authorization: OAuth oauth_signature_method="HMAC-SHA1", oauth_consumer_key="your_consumer_key", oauth_version="1.0", oauth_timestamp="1482575080", oauth_nonce="2142790194", oauth_verifier="THE_OAUTH_VERIFIER_YOU_RECEIVED", oauth_token="your_oauth_request_token", oauth_signature="HMAC-SHA1_SIGNATURE_GENERATED_BY_POSTMAN_CLIENT"
I tried POST /oauth/token/access by 2 ways:
1. Using online curl tool: I got "oauth_problem=OAuth+version+%5C%221.0%5C+is+not+supported" error.
2. Using Postman: I got "oauth_problem=Token+verifier+and+verifier+token+do+not+match" error.
I searched for these errors but could not get much information.
Any help on this would be appreciated.