AnsweredAssumed Answered

Dashlets accessing external resources behind a proxy

Question asked by mlagneaux on Oct 20, 2011
Hi everyone,

I am adding some new dashlets to Alfresco Share, and all of them need to access external resources (RSS feed, twitter API…).
The http request is performed via these instructions in Share :
var connector = remote.connect("http");
var obsResult = connector.get(url);

However, for each external call, I need to pass through a proxy server.
With no particular configuration, the request return a 499 error.

I configured Tomcat adding the following settings in :

The proxy connection seems to be ok, but the request now returns a 407 error (Proxy Authentication Required).
I don’t know how to solve this authentication issue.
I tried to add the same proxy configuration to the JVM options, but the request still returns the 407 status : -DproxySet=true -Dhttp.proxyHost=xxx -Dhttp.proxyPort=xxx -Dhttp.proxyUser=xxx -Dhttp.proxyPassword=xxx Dhttp.nonProxyHosts=|localhost
I also used the http.proxyAuth, http.auth.ntlm.domain and http.proxyRealm options, without success…

Has anyone already managed to configure a proxy using authentication ?
Any clue is welcomed.