0

A request token is a temporary token that the user exchanges for an access token. I am unable to generate a request token using Postman for Adobe Commerce using Consumer Key and Consumer Secret which I generated from the admin site.

  • Method used: POST
  • URL used: baseURL/oauth/token/request

I have provided all the request parameters in the Authorization header mentioned in this document AdobeCommerce Oauth based authentication. Still I am not getting the expected oauth_token=4cqw0r7v*******xwr0h&oauth_token_secret=rig3x3j*******rr in the response.

The response I am getting is oauth_problem=%22oauth_consumer_key%22+is+required.+Enter+and+try+again%2C+%22oauth_signature%22+is+required.+Enter+and+try+again%2C+%22oauth_signature_method%22+is+required.+Enter+and+try+again%2C+%22oauth_nonce%22+is+required.+Enter+and+try+again%2C+%22oauth_timestamp%22+is+required.+Enter+and+try+again. However, I have tried putting the Consumer secret also though according to the API Doc it is not mandatory. The response I got, in this case, is oauth_problem=Consumer+key+has+expired.

I have used the Signature method HMAC-SHA1 and HMAC-SHA256, but the responses are still the same.

1 Answer 1

0

This error occurs if you already have a request token created in Magento database table oauth_token. Clear this table of its entries ,and try.

mysql> DELETE FROM oauth_token;
3
  • Thanks for your response. I have tried using a new integration i.e. new Consumer Key and Consumer Secret whose OAuth token has not been generated yet. It will be generated once I active the status allowing the module API which can be accessed through the Integration CS, CK. Still, the same errors are being shown.
    – Amrita
    Jul 7, 2022 at 7:29
  • what i write in answer , did you see it Jul 7, 2022 at 8:43
  • Yes, I have checked it. As it is the client's environment we are not allowed to run any query there. Should we delete all the existing OAuth tokens from the list in order to generate a new OAuth token for a new Integration CK, CS?
    – Amrita
    Jul 8, 2022 at 11:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.