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: 
diazsmiedts
Contributor III
Contributor III

QlikSense Reload - tRestClient NTLM authentication

Hi all, 

 

I'm implementing a joblet in order to do a reload of a QlikSense app. This works with the QlikSense repository service (QRS) which you can call over REST. Authentication  is a bit of an issue actually, as the best practice seems to be to use WebSocket communication using client certificates etc. As I'm doing it as part of a DI job(let) using tRESTclient, I want to use NTLM authentication. 

 

This however is not a configuration option available in tRestclient 7.1, but I was wondering if there are workarounds available for this. 

I tried a couple that were mentioned online but couldn't get any to work. 

 

The below example for instance, does not do the trick. 

System.setProperty("http.auth.ntlm.domain", "192.168.0.100");
java.net.Authenticator.setDefault(new java.net.Authenticator() {
public java.net.PasswordAuthentication getPasswordAuthentication() {
return new java.net.PasswordAuthentication("username",
"password".toCharArray());
}
});

Anyone else that has a similar requirement (call REST API and use NTLM authentication) that can help me out with a working example? 

 

Thanks

 

Labels (4)
0 Replies