Hi Guys, I need to consume an API that in the header I need to pass the Authorization that is a bearer? How can I do that?<o:p></o:p>
In my test, before the Rest Client step I put a Generate Rows with 2 fields:<o:p></o:p>
URL: my endpopint<o:p></o:p>
Authorization: with the value Bearer {my_token}<o:p></o:p>
In the job properties I also create a parameter called Authorization with the same value<o:p></o:p>
Now, in the REST Client step, in the Header tab in the filed I selected Authorization and in the Name I set ${Authorization}. <o:p></o:p>
After that, I executed he transformations but the answer was that the Authorization is incorrect.<o:p></o:p>
Just to check if my token was valid, I made test using postman, and it works properly. The difference is that in the postman there is a tab that I can choose the type, in my case Bearer Token and then I put the token. I the header I didn't need to put nothing.<o:p></o:p>
So, how can I do it in Pentaho Data Integration?<o:p></o:p>
Regards, Igor Martins
------------------------------
Igor Martins
Director of Sales
Particular
------------------------------