[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ivy-user
Subject:    Re: store Ivy credentials with IvyDE
From:       Anthony D <anthony.diloreto () gmail ! com>
Date:       2010-09-28 20:15:38
Message-ID: 29832473.post () talk ! nabble ! com
[Download RAW message or body]


Hi Nicolas,

I did some debugging and found a couple of things:
- You are correct, Eclipse is providing the dialog, and has been since
around 3.3 at least
- It is caused by org.apache.ivy.util.url.IvyAuthenticator that does its own
check to see if has the credentials via a "credentials" element in
ivysettings
   - Failing that, it passes the credentials check to the "original"
Authenticator, which in this case is
org.eclipse.ui.internal.net.auth.NetAuthenticator

Apparently, there has been debate/dispute about how to cache/store this in
Eclipse (is has not been done yet). (Here is 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=196780 one  of several bug
reports.) The end result is there is no way at the moment to save these
types of credentials from within Eclipse. :-(

Hopefully they get their act together soon. The only other thing I can think
of is a way to encrypt the password within the ivy settings file (or Ant
task), but that is probably straying from the best (Eclipse) solution.

Anyway, thanks for looking into this.




Nicolas Lalevée wrote:
> 
> 
> Le 7 sept. 2010 à 06:33, Anthony D a écrit :
> 
> > 
> > Hi,
> > 
> > I was pleasantly surprised using IvyDE with an HTTP Ivy repository (URL
> > resolver) that required authentication. Whenever I started a workspace
> > that
> > resolved to such a repository it prompted me for my username and password
> > and successfully logged in. (i.e. I didn't have to hard-code it in an
> > ivysettings.xml or ant script file for the world to see)
> 
> I think Eclipse is providing the popup.
> 
> > 
> > Now that I am using multiple workspaces and end up closing them once in a
> > while to regain precious memory, I'm finding having to type in my
> > credentials every time I reload a workspace a little annoying. ;)  
> > 
> > Is it possible as part of the global (and even project-specific) Ivy
> > settings to store default credentials (host, realm, user, and password)?
> > That would go a long way in making IvyDE an even more pleasurable
> > experience. It could go as far as having a "remember credentials"
> > checkbox
> > when the login prompt appears, that way it gets added to this list
> > automatically.
> 
> Which Eclipse are you using ?
> Since Eclipse 3.6 (I did not remember seeing it in previous versions), it
> is capable to store the password in your OS password store. On Mac it uses
> the KeyChain. There is something for windows too. For Linux it could have
> use KWallet or the Gnome keyring but I haven't seen any implementation.
> With that kind of password store, you would only have to make you OS trust
> Eclipse.
> Eclipse does have another kind of password store, but it requires a
> "master" password each time the it starts. But it won't help you as you
> restart your Eclipse often. Maybe that the one you are using ?
> 
> Nicolas
> 
> 
> 

-- 
View this message in context: \
http://old.nabble.com/store-Ivy-credentials-with-IvyDE-tp29639133p29832473.html Sent \
from the ivy-user mailing list archive at Nabble.com.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic