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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
imholzj
Contributor III
Contributor III

tHttpRequest force basic auth

Is there a way to force the http client to send the auth header?

I'm hitting a server that requires it. I've satisfied the requirement by generating the header myself, but was just wondering if there should be an option on the component to do this.

jji

Labels (2)
2 Replies
Jamesclary
Contributor II
Contributor II

Yes, you can set the authorization header manually in the HTTP client request. For example, in JavaScript using the Fetch API:

fetch(url, {

 headers: {

  'Authorization': 'Bearer <your_token_here>'

 }

})

In this example, the `Authorization` header is set to include a bearer token. You would replace `<your_token_here>` with the actual token you want to use for authentication.

Try once may be this will help you.

Alpine Skyward

 

 

 

 

 

imholzj
Contributor III
Contributor III
Author

Yes, I'm send the token auth header after I get the JSON Web Token. But requesting the token requires Basic Auth, and it would be nice if there were an option in the tHttpResquest component to force the sending of the Basic Auth header on the first request.

 

jji