Seven Stars

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?
2 REPLIES
One Star

Re: Non-basic authentication to REST service

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
Seven Stars

Re: Non-basic authentication to REST service

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