Fun with proxies

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Fun with proxies

Michael Doube-3
Hi everyone,

I'm helping a collaborator get started with ImageJ and we are totally
stuck getting access to their network. (freshly downloaded ImageJ and Fiji
both affected)

Internet Explorer always asks for proxy username and password and there
are no system-wide proxy settings. Neither entering the same credentials
nor asking to use system proxy settings works.  Could we be missing
something? I have tried setting sytem-wide proxy details, but then Fiji
spews a 407 error and there doesn't seem to be anywhere I can enter
authentication details. This is on a Win 7 laptop.

Michael
Reply | Threaded
Open this post in threaded view
|

Re: Fun with proxies

dscho
Hi Mike,

On Tue, 7 Feb 2012, Michael Doube wrote:

> I'm helping a collaborator get started with ImageJ and we are totally
> stuck getting access to their network. (freshly downloaded ImageJ and
> Fiji both affected)
>
> Internet Explorer always asks for proxy username and password and there
> are no system-wide proxy settings.

If you're talking about MTZ, you can set the system-wide proxy settings
and at least in my tests back then, that helped the matter.

> Neither entering the same credentials nor asking to use system proxy
> settings works.  Could we be missing something? I have tried setting
> sytem-wide proxy details, but then Fiji spews a 407 error and there
> doesn't seem to be anywhere I can enter authentication details. This is
> on a Win 7 laptop.

Unfortunately, it is a little bit more involved when 407 is encountered:
you have to implement an Authenticator. I did that here:

http://fiji.sc/cgi-bin/gitweb.cgi?p=fiji.git;a=commitdiff;h=f70190e264da6739a6f21d683bf68aa51f4f2985;hb=refs/heads/master

and activated it in the Fiji Updater thusly:

http://fiji.sc/cgi-bin/gitweb.cgi?p=fiji.git;a=commitdiff;h=493a7999c60dd803675bb1bad47f3890d5b653f0;hb=refs/heads/master

So: in Fiji, a simple Beanshell like this should do the job:

-- snip --
java.net.Authenticator.setDefault(new fiji.updater.GraphicalAuthenticator());
-- snap --

Hope this helps!
Dscho

P.S.: I am sure that other people have solved this differently, so I would
caution against including this in core IJ1. Even if it is quite hard, some
people do use IJ1 as a library.
Reply | Threaded
Open this post in threaded view
|

Re: Fun with proxies

Michael Doube-3
Hi Johannes,

>> Neither entering the same credentials nor asking to use system proxy
>> settings works.  Could we be missing something?

It turned out that the laptop was set up to be in WORKGROUP. Giving it a
proper domain allowed it to find the proxy server, and updates run OK.
Also, I can get the sample images now.

Thanks!

Michael


I have tried setting

>> sytem-wide proxy details, but then Fiji spews a 407 error and there
>> doesn't seem to be anywhere I can enter authentication details. This is
>> on a Win 7 laptop.
>
> Unfortunately, it is a little bit more involved when 407 is encountered:
> you have to implement an Authenticator. I did that here:
>
> http://fiji.sc/cgi-bin/gitweb.cgi?p=fiji.git;a=commitdiff;h=f70190e264da6739a6f21d683bf68aa51f4f2985;hb=refs/heads/master
>
> and activated it in the Fiji Updater thusly:
>
> http://fiji.sc/cgi-bin/gitweb.cgi?p=fiji.git;a=commitdiff;h=493a7999c60dd803675bb1bad47f3890d5b653f0;hb=refs/heads/master
>
> So: in Fiji, a simple Beanshell like this should do the job:
>
> -- snip --
> java.net.Authenticator.setDefault(new
> fiji.updater.GraphicalAuthenticator());
> -- snap --
>
> Hope this helps!
> Dscho
>
> P.S.: I am sure that other people have solved this differently, so I would
> caution against including this in core IJ1. Even if it is quite hard, some
> people do use IJ1 as a library.
>