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

[Subclipse-dev] svnant / svnClientAdapter / svnkit authentication

From: Maciek Sakrejda <msakrejda_at_truviso.com>
Date: 2007-08-15 19:49:55 CEST

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? 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:

/**
 * Request the username to be used for SVN operation
 * the save data check box status will be queried by userAllowedSave
 * @param realm realm for the username
 * @param username username in the realm
 * @param maySave should a save data check box be enabled.
 * @return password as entered or null if canceled.
 */
public boolean promptUser(String realm, String username, boolean
maySave);

So it's really unclear what one is supposed to return. Do I ignore these
as well?

Or is there another path I can take to achieve this goal? Everything
works automagically if I use the command line client with svnant, so I'm
thinking that the top level might not be the right place to make these
changes...

Thanks,
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.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:47:51 2007

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