[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Re: [Subclipse-dev] Subclispe credential

From: Mark Phippard <markphip_at_gmail.com>
Date: Mon, 16 Feb 2009 10:28:02 -0500

On Mon, Feb 16, 2009 at 10:21 AM, Vincent <vincent.marillaud_at_airbus.com> wrote:

> In an other way, is it possible to provide credentials to Subclipse ?
>
> These provided credentials would come from any source (a custom UI, ...)

For the most part No. We do not have a facility for doing this. The
SVNClientAdapter library, which Subclipse uses has methods to set the
username and password, and there is a way to get a reference to the
ISVNClientAdapter used by Subclipse. So conceivably you could set
this. I cannot really say it will work though or is something that is
supported.

We basically stopped trying to do this years ago because it just
didn't work. The Subversion libraries manage the credentials and
there is not enough interaction to support providing the credentials.
For example, we used to let you enter a username/password in Subclipse
and we would set these when we call Subversion, but if the credentials
were invalid or the password needed to be changed, the experience was
very awkward. Subversion would know the credentials were invalid and
call the callback to get new credentials, but then Subclipse did not
really have any way to know this was happening so that it could update
its credentials. So the next time you try to do something we supply
the old credentials again and the whole cycle repeats.

So we just got rid of all attempts to collect your credentials and
instead we allow Subversion and its callbacks to request them when
needed and we implement those callbacks. This makes the experience
work properly and also allows the credentials to be securely stored in
one place by Subversion.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=1171396
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_subclipse.tigris.org].
Received on 2009-02-16 16:28:12 CET

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.