Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to set an Bearer token authorization code to trest component without using http headers
Hi,
The token must be passed in header Authorization = Bearer [myToken]. Why do you want to avoid using headers?
Best regards,
Trond
i have tried it but it wasnt working its giving 403 error which means authorization failed
but the same authorization is working in trestclient so i asked fro the other way of authorization
yeah this is my component along with the body
The error code is like
I am trying to do the same thing, and the solution of using a header of "Authorization = Bearer {YourBearerToken}" worked for me. For context, before making the API call in Talend, I was using Insomnia (basically like postman). And for that, I was selecting "Bearer" from the list of auth types, and then putting in my token when prompted.
I only explain this to demonstrate that using the header as stated above seems to be equivalent to selecting the "bearer" auth type in some API client like postman, insomnie etc.