Stéphane Jeanjean
Wed, 27 Jan 2010 10:23:30 -0800
So http.proxyAuth has to contain login:password Is http.proxyAuth usual variable ?Why not using http.proxyUser and http.proxyPassword which are standard variables ?
Thanks ! Stéphane Richard S. Hall a écrit :
On 1/27/10 13:01, Stéphane Jeanjean wrote:I don't think this is the same issue. FELIX-651 is about an authentication against the repository server. My issue is about an authentication against the http proxy between the OSGi platform and the repository server.Ok, my bad.When I use OBR through a proxy without authentication, it's ok. So it seems that http.proxyHost, http.proxyPort are takken in account. What is the HTTP client used in Felix OBR Implementation ? Perhaps this client is not using http.proxyUser, http.proxyPassword ?OBR does this: // Support for http proxy authentication String auth = System.getProperty("http.proxyAuth"); if ((auth != null) && (auth.length() > 0)) {if ("http".equals(m_url.getProtocol()) || "https".equals(m_url.getProtocol())){ String base64 = Util.base64Encode(auth);conn.setRequestProperty("Proxy-Authorization", "Basic " + base64);} } Is that not sufficient? -> richardStéphane Richard S. Hall a écrit :I believe the following issue discusses this area: https://issues.apache.org/jira/browse/FELIX-651 We need someone to follow up on the issues raised by Felix Meschberger. -> richard On 1/27/10 12:29, Stéphane Jeanjean wrote:Hi,My platform tries to access to an OBR repository through a proxy with authentication. So I set the following variables : http.proxyHost, http.proxyPort, http.proxySet, http.proxyUser, http.proxyPasswordIt seems that the platform cannot reach my repository. When the network is sniffed, I see that the destination of the request is what is set in http.proxyHost and the port used is what is set in http.proxyPort. But it seems that http.proxyUser and http.proxyPassword are not used because there is no "proxy-authorization" header in the request :(So I try to put this kind of code in my application : Authenticator.setDefault( new Authenticator() {public PasswordAuthentication getPasswordAuthentication() {return new PasswordAuthentication(getProxyUser(), getProxyPassword().toCharArray());} } ); But the behavior is the same :(Do you know if the Felix OBR implementation is compatible with this type of proxy (with authentication) ?Thanks, Stéphane --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org