Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to use Bearer token as authorization in trest component

I want to set an Bearer token authorization code to trest component without using http headers

Labels (4)
5 Replies
Anonymous
Not applicable
Author

Hi,

 

The token must be passed in header Authorization = Bearer [myToken]. Why do you want to avoid using headers?

 

Best regards,

Trond

Anonymous
Not applicable
Author

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

 

Anonymous
Not applicable
Author

Can you post your component settings for tRestClient?
Anonymous
Not applicable
Author

yeah this is my component along with the body

0683p000009M9bA.jpg

The error code is like

 

0683p000009M9jq.jpg

aaronrums
Contributor II
Contributor II

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.