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: 
alevy
Specialist
Specialist

Non-basic authentication to REST service

I might be exposing my complete ignorance here but I need to connect to a REST service that requires NTLM authentication and which sits on a different domain. Is that even conceptually possible and, if so, how would I go about it?
Labels (3)
2 Replies
Anonymous
Not applicable

Hi
Please try this.
tJava--OnSubjobOk-->tREST
Type this code line into tJava.
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());
}
});

If it doesn't work, please report on BugTracker for this NTLM feature.
Regards,
Pedro
alevy
Specialist
Specialist
Author

Hi Pedro, I don't understand: where would I pass the domain/user and password needed to connect to the service?