This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: How to setup http proxy with required authentication for sbaz?

No replies
matlik
Joined: 2008-09-07,
User offline. Last seen 2 years 43 weeks ago.
In typical fashion, I failed to include the group...

On Fri, Feb 10, 2012 at 9:16 AM, James Matlik <james.matlik@gmail.com> wrote:
Hi Rinat,
I've never had to authenticate through a proxy before, and assumed that simply providing the http.proxyUser and http.proxyPassword were enough.  However, a quick search yielded this discussion on stackoverflow:
     http://stackoverflow.com/questions/1626549/authenticated-http-proxy-with-java 
Looks like a code change is required to get authenticated proxies working.  It has been a while since I've been in the code, so it may take me a while to get it in place. 

On Fri, Feb 10, 2012 at 6:45 AM, Rinat Gareev <aldvinaldvin@gmail.com> wrote:
How to setup a http proxy with required authentication for sbaz?

From http://www.scala-lang.org/node/6628
>>>
Firewalls and HTTP Proxies

Scala Bazaars uses HTTP to communicate with universe servers. If your
network blocks HTTP access, then, you need to configure sbaz to use an
HTTP proxy. To do this, create a file named config/sbaz.properties in
your managed directory and give it the appropriate proxy settings,
something like:

http.proxySet=true
http.proxyHost=localhost
http.proxyPort=3128
<<<
but there is no words how to pass authentication credentials
(username, password) to this proxy.

I looked at sbaz sources. It seems like sbaz.properties is simply
loaded to JVM system properties map and there is not any
java.net.Authenticator for proxy host. May be I missed something.


Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland