Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am trying to use "tRESTClient" to authenticate against Magento server that validates credentials using OAuth 1.0 specification. I have validated the authentication using PostMan tool and with each call to server it generates unique "oauth_signature" value (POST method). I have gone through various threads on this community that somewhat relates to this topic but don't seem to provide clear direction. I am using the static values for the following parameters for authentication:
"oauth_consumer_key" - some value
"oauth_token" - some value
"oauth_signature_method" - "HMAC-SHA256"
"oauth_nonce" - some value
"oauth_version" - "1.0"
"consumer_secret" - some value
"token_secret" - some value
Can someone please help me understand how to capture "oauth_signature" in the similar way within Talend?
Regards,
Manish Anand
Hi
Does the API calling work using tRESTClient? Link tRESTClient to a tLogRow to check if "oauth_signature" is included in the body document of response, if so, you can use a tXMLMap to extract the "oauth_signature" value from the response.
Regards
Shong
Thanks Shong.
API calling works as expected. I am getting error message as "Bad Request" since oauth_signature is missing. Oauth_signature should be part of header request along with other parameters.
I don't get to see any response in the body wrt oauth_signature. Its a generated value and prepared by the app that is calling API (as in Postman). I feel that if we create Oath_signature outside the tRestClient and pass this generated value along with other parameters in header, it will work.
Do we have a way to generate this value using "HMAC-SHA256" signature method in tjava or alike?
Regards,
Manish Anand