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=4cqw0r7vxwr0h&oauth_token_secret=rig3x3jrr” 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.