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

Re: [Subclipse-dev] svnant / svnClientAdapter / svnkit authentication

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-08-15 20:01:12 CEST

On 8/15/07, Maciek Sakrejda <msakrejda@truviso.com> wrote:
> I'm trying to get key-based svnant+svnkit working, and it seemed to be
> fine without a private key passphrase, but now that I've added a
> passphrase, I get an "authentication canceled" error. Could someone
> point me in the right direction as to how to enable key-based
> authentication with passphrase in svnant+svnkit? I'd be happy to submit
> a patch.
>
> Ideally, I'd like to be able to set attributes for keyfile and
> passphrase in the <svn> task (in addition to the current user and
> password). Do I need to implement ISVNPromptUserPassword to do this and
> register it as the handle for the given ISVNClientAdapter?

Yes. That is exactly what you need to do. Is this SSL certs or SSH?
The former require setting some Java property, I think, to tell SVNKit
to prompt.

> A lot of the
> methods in that interface need interaction by their nature (say,
> askYesNo)--can I just ignore these (i.e., return false)? Also, some have
> out-of-date javadoc:

You want to return true, which means if there was a UI, the user
clicked OK and provided the information. False means the user decided
to cancel. There will then be additional calls to get the username,
password etc. that were entered. You do not have to provide an actual
UI in these methods provided that you can provide the information it
wants.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: dev-help@subclipse.tigris.org
Received on Wed Aug 15 19:58:56 2007

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