<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic QlikSense Reload - tRestClient NTLM authentication in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/QlikSense-Reload-tRestClient-NTLM-authentication/m-p/2213876#M10961</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 &amp;nbsp;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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This however is not a configuration option available in tRestclient 7.1, but I was wondering if there are workarounds available for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried a couple that were mentioned online but couldn't get any to work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below example for instance, does not do the trick.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;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());
}
});&lt;/PRE&gt;
&lt;P&gt;Anyone else that has a similar requirement (call REST API and use NTLM authentication) that can help me out with a working example?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:10:55 GMT</pubDate>
    <dc:creator>diazsmiedts</dc:creator>
    <dc:date>2024-11-16T03:10:55Z</dc:date>
    <item>
      <title>QlikSense Reload - tRestClient NTLM authentication</title>
      <link>https://community.qlik.com/t5/Talend-Studio/QlikSense-Reload-tRestClient-NTLM-authentication/m-p/2213876#M10961</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 &amp;nbsp;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.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This however is not a configuration option available in tRestclient 7.1, but I was wondering if there are workarounds available for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried a couple that were mentioned online but couldn't get any to work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The below example for instance, does not do the trick.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;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());
}
});&lt;/PRE&gt;
&lt;P&gt;Anyone else that has a similar requirement (call REST API and use NTLM authentication) that can help me out with a working example?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/QlikSense-Reload-tRestClient-NTLM-authentication/m-p/2213876#M10961</guid>
      <dc:creator>diazsmiedts</dc:creator>
      <dc:date>2024-11-16T03:10:55Z</dc:date>
    </item>
  </channel>
</rss>

