|
Re: P2 Update Site - set http headers in request [message #135022 is a reply to message #130664] |
Wed, 08 July 2009 22:54 |
Eclipse User |
|
|
|
Originally posted by: slewis.composent.com
Hi Glen,
Glen Tan wrote:
> I am currently working on an Eclipse RCP based project where I have
> successfully p2-enabled my Eclipse RCP application. I have also been
> able to have my application be able to automatically check for updates
> upon startup.
>
> BUT, there is a requirement to pass in my credentials (user name and
> password) via HTTP headers or URL parameter. There is an authentication
> mechanism between the RCP application and the update site web server.
>
> Does anyone know if which plugin can be extended or customised to enable
> such feature?
Not at present (Galileo/ECF 3.5), but there are two possible solutions:
1) It's quite possible for you to implement your own ECF filetransfer
provider (and introduce your own custom authentication for http) by
extending the appropriate classes in the httpclient provider
(org.eclipse.ecf.provider.filetransfer.httpclient project). If you
would like to do this, please let us know on ecf-dev at eclipse.org
mailing list and we will support you as much as possible.
2) we (ECF) have an enhancement request to add the ability to pass http
headers into the file transfer:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=282608
Once this is in place (my guess would be for 3.5.1 in September), then
you would be able to provide headers. I don't believe P2 currently
exposes this API for specifying http request headers, however, so that
would require a p2 enhancement to complete.
So for immediate effect, my suggestion would be to do 1.
Scott
|
|
|
Powered by
FUDForum. Page generated in 0.02997 seconds