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

Re: [Subclipse-dev] svnClientAdapter: Authentication cancelled when creating remote folder on file:/// repository

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-03-27 15:39:33 CEST

On 3/27/07, Shawn Jin <shawnemails@gmail.com> wrote:
> Mark,
> I implemented ISVNPromptUserPassword, in which getUsername() and
> getPassword() are returning a String "abc". Passed the class to
> ISVNClientAdapter#addPasswordCallback method... No magic. My initial thought
> from your reply is these two methods will provide authenticaion info when
> the client is chanllenged, am I wrong?

You need to implement something for all the methods. Most likely the
adapter is going to call the method to prompt for the username and
password. You can fake out this method by just returning the right value
that means the user did it properly. I think this means returning true.
The client will then typically follow this up with calls to getUsername and
getPassword to retrieve the values the user might have entered. But if you
returned false from that earlier method, then it will assume the user
clicked Cancel in a dialog and thus will never call the other methods.

I am not sure which methods SVNKit is calling in the case of file://
access. You just need to make sure you are returning true for all the
prompt methods and the implemented a value in the getUsername method.

Mark Phippard
Received on Tue Mar 27 15:39:41 2007

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