Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: Re: [Subclipse-dev] Subclispe credential

subclipse
Discussion topic

Hide all messages in topic

All messages in topic

Re: Re: [Subclipse-dev] Subclispe credential

Author markphip
Full name Mark Phippard
Date 2009-02-16 07:28:03 PST
Message On Mon, Feb 16, 2009 at 10:21 AM, Vincent <vincent.marillau​d@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/

RE: Re: [Subclipse-dev] Subclispe credential

Author vinsm
Full name Vincent
Date 2009-02-16 07:21:14 PST
Message Thanks Mark.

In an other way, is it possible to provide credentials to Subclipse ?

These provided credentials would come from any source (a custom UI, ...)

Re: [Subclipse-dev] Subclispe credential

Author markphip
Full name Mark Phippard
Date 2009-02-16 05:53:54 PST
Message On Mon, Feb 16, 2009 at 8:44 AM, Vincent <vincent.marillau​d@airbus.com> wrote:

> I'am currently working on an Eclipse plugin based on the Subclipse one.
> For convenience reasons, I'd like to reuse the credential used by Subclipse to authenticate to the SVN server.
> Is there any Subclipse API which enables to retrieve the credential stored internally by Subclipse ?

No, we do not cache the credentials, the Subversion API does. We do
not have any access to these, which is why we also cannot provide a UI
to update/clear the cache etc. and this is why we do not ask for
credentials when you add a site.

--
Thanks

Mark Phippard
http://markphip.blogspot.com/

[Subclipse-dev] Subclispe credential

Author vinsm
Full name Vincent
Date 2009-02-16 05:44:53 PST
Message Hi,
 
I'am currently working on an Eclipse plugin based on the Subclipse one.
For convenience reasons, I'd like to reuse the credential used by Subclipse to authenticate to the SVN server.
Is there any Subclipse API which enables to retrieve the credential stored internally by Subclipse ?
 
 
Thanks
Messages per page: