Proxy and Authentication

6 messages Options
Embed this post
Permalink
Alexandre Passant

Proxy and Authentication

Reply Threaded More More options
Print post
Permalink
Hi,

I saw several posts dealing with Protege and proxy support.
As [1] suggests, it seems easy to setup proxy parameters.
Yet, I can't see how to use it for proxy that require authentication.
The only thing I found is [2] (from a post on the ML), but it seems we
need to recompile the whole application.

Does anyone know an easy way to pass a proxy / firewall that require
authentication in Protege, so that I can retrieve external ontologies
?

Thanks a lot for any hint.

Best,

Alex.

[1] https://mailman.stanford.edu/pipermail/protege-discussion/2006-October/000131.html
[2] http://www.javaworld.com/javaworld/javatips/jw-javatip42.html
_______________________________________________
protege-discussion mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Timothy Redmond

Re: Proxy and Authentication

Reply Threaded More More options
Print post
Permalink

Thanks for the great links.  This sounds like an interesting problem  
and I know very little about this issue.

It would be nice if it could be handled by Java without changes to  
Protege as described in (1).  But failing that I would tend to prefer  
something that works as a plugin rather than a change to protege.  
Perhaps a tab/project plugin that installs a socket factory (would  
that work? can this be done at the socket level?) or a createproject  
plugin that creates a project through a proxy.  The problem with the  
latter approach is that it would be hard to capture all the different  
ways in which a project can be loaded (frames project from url,  
frames project imported from url, owl project from owl file, etc.).  
One problem with the first idea is that socket factories can only be  
installed once so there might eventually  be a conflict between  
different plugins.  Maybe somebody in the community knows what to do  
and can make a plugin?

I will put this in bugzilla as an enhancement to preserve your  
information.

-Timothy


On Jan 29, 2007, at 9:32 AM, Alexandre Passant wrote:

> Hi,
>
> I saw several posts dealing with Protege and proxy support.
> As [1] suggests, it seems easy to setup proxy parameters.
> Yet, I can't see how to use it for proxy that require authentication.
> The only thing I found is [2] (from a post on the ML), but it seems we
> need to recompile the whole application.
>
> Does anyone know an easy way to pass a proxy / firewall that require
> authentication in Protege, so that I can retrieve external ontologies
> ?
>
> Thanks a lot for any hint.
>
> Best,
>
> Alex.
>
> [1] https://mailman.stanford.edu/pipermail/protege-discussion/2006- 
> October/000131.html
> [2] http://www.javaworld.com/javaworld/javatips/jw-javatip42.html
> _______________________________________________
> protege-discussion mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/ 
> faq.html#01a.03

_______________________________________________
protege-discussion mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Fabrizio-7

Re: Proxy and Authentication

Reply Threaded More More options
Print post
Permalink
That's the solution:

If you are using a proxy to access the Internet then add the following as one
single (!) line to the file Protege.lax in the Protégé installation directory
and replace YOUR_PROXY_''X'' with the respective data for your place. If your
proxy is not password protected leave the two last options out.  

lax.nl.java.option.additional=-Dhttp.proxySet=true
-Dhttp.proxyHost=YOUR_PROXY_HOST -Dhttp.proxyPort=YOUR_PROXY_PORT
-Dhttp.proxyUser=YOUR_PROXY_USER -Dhttp.proxyPassword=YOUR_PROXY_PASSWORD

Cheers,
Fabrizio



_______________________________________________
protege-discussion mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Alexandre Passant

Re: Proxy and Authentication

Reply Threaded More More options
Print post
Permalink
Hi,

Sorry for the late answer,

On 2/20/07, Fabrizio <[hidden email]> wrote:

> That's the solution:
>
> If you are using a proxy to access the Internet then add the following as one
> single (!) line to the file Protege.lax in the Protégé installation directory
> and replace YOUR_PROXY_''X'' with the respective data for your place. If your
> proxy is not password protected leave the two last options out.
>
> lax.nl.java.option.additional=-Dhttp.proxySet=true
> -Dhttp.proxyHost=YOUR_PROXY_HOST -Dhttp.proxyPort=YOUR_PROXY_PORT
> -Dhttp.proxyUser=YOUR_PROXY_USER -Dhttp.proxyPassword=YOUR_PROXY_PASSWORD

That's what I tried, but still got a 407 error (proxy authentication failed).
Did it work fine for you ?

The only way I found until now to make Java use proxy auth is what I
mentionned before [1] but need implies to recompile the app :/

Best,

Alex.

[1] http://www.javaworld.com/javaworld/javatips/jw-javatip42.html

> Cheers,
> Fabrizio
>
>
>
> _______________________________________________
> protege-discussion mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>
_______________________________________________
protege-discussion mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Fabrizio-7

Re: Proxy and Authentication

Reply Threaded More More options
Print post
Permalink
Alexandre Passant <alex <at> passant.org> writes:

>
> Hi,
>
> Sorry for the late answer,
>
> On 2/20/07, Fabrizio <fabrizio.antonelli <at> telecomitalia.it> wrote:
> > That's the solution:
> >
> > If you are using a proxy to access the Internet then add the following as one
> > single (!) line to the file Protege.lax in the Protégé installation directory
> > and replace YOUR_PROXY_''X'' with the respective data for your place. If your
> > proxy is not password protected leave the two last options out.
> >
> > lax.nl.java.option.additional=-Dhttp.proxySet=true
> > -Dhttp.proxyHost=YOUR_PROXY_HOST -Dhttp.proxyPort=YOUR_PROXY_PORT
> > -Dhttp.proxyUser=YOUR_PROXY_USER -Dhttp.proxyPassword=YOUR_PROXY_PASSWORD
>
> That's what I tried, but still got a 407 error (proxy authentication failed).
> Did it work fine for you ?
>
> The only way I found until now to make Java use proxy auth is what I
> mentionned before [1] but need implies to recompile the app :/
>
> Best,
>
> Alex.
>
> [1] http://www.javaworld.com/javaworld/javatips/jw-javatip42.html
>
> > Cheers,
> > Fabrizio
> >

Hi,
I had such problem too. After installing Protege the protege.lax file is around
5kb and each section is commented. I tried to insert the proxy row at this stage
and it didn't work.
When you open the first project and exit Protege, the protege.lax changes and
becomes 2kb: it contains all the Protege settings in a batch of rows and the
comments disappear. Insert the proxy row (as described above, using your proxy
settings) wherever in the file, paying attention not to split it in multiple
lines and possibly inserting the IP of the proxy server instead of its name.
That worked with me, hope it works with you too.

Cheers,
Fabrizio



_______________________________________________
protege-discussion mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Alexandre Passant

Re: Proxy and Authentication

Reply Threaded More More options
Print post
Permalink
Hi,

I finally make it work by hacking source code [1] !
After investigations, it seems there's no way except this one to pass
auth parameter to a proxy, maybe yours was not authenticated Fabrizio
?

Best,

Alex.

[1] http://apassant.net/blog/post/2007/03/16/Using-Protege-through-an-authenticated-proxy

On 3/7/07, Fabrizio <[hidden email]> wrote:

> Alexandre Passant <alex <at> passant.org> writes:
>
> >
> > Hi,
> >
> > Sorry for the late answer,
> >
> > On 2/20/07, Fabrizio <fabrizio.antonelli <at> telecomitalia.it> wrote:
> > > That's the solution:
> > >
> > > If you are using a proxy to access the Internet then add the following as one
> > > single (!) line to the file Protege.lax in the Protégé installation directory
> > > and replace YOUR_PROXY_''X'' with the respective data for your place. If your
> > > proxy is not password protected leave the two last options out.
> > >
> > > lax.nl.java.option.additional=-Dhttp.proxySet=true
> > > -Dhttp.proxyHost=YOUR_PROXY_HOST -Dhttp.proxyPort=YOUR_PROXY_PORT
> > > -Dhttp.proxyUser=YOUR_PROXY_USER -Dhttp.proxyPassword=YOUR_PROXY_PASSWORD
> >
> > That's what I tried, but still got a 407 error (proxy authentication failed).
> > Did it work fine for you ?
> >
> > The only way I found until now to make Java use proxy auth is what I
> > mentionned before [1] but need implies to recompile the app :/
> >
> > Best,
> >
> > Alex.
> >
> > [1] http://www.javaworld.com/javaworld/javatips/jw-javatip42.html
> >
> > > Cheers,
> > > Fabrizio
> > >
>
> Hi,
> I had such problem too. After installing Protege the protege.lax file is around
> 5kb and each section is commented. I tried to insert the proxy row at this stage
> and it didn't work.
> When you open the first project and exit Protege, the protege.lax changes and
> becomes 2kb: it contains all the Protege settings in a batch of rows and the
> comments disappear. Insert the proxy row (as described above, using your proxy
> settings) wherever in the file, paying attention not to split it in multiple
> lines and possibly inserting the IP of the proxy server instead of its name.
> That worked with me, hope it works with you too.
>
> Cheers,
> Fabrizio
>
>
>
> _______________________________________________
> protege-discussion mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>
_______________________________________________
protege-discussion mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03