Hello,

I apologize for delay with the answer - we had mailing list issues and
it looked like replies were sent while they were not :(


>From the log file it looks like your program does send credentials to
the server, but server rejects these credentials. And as there is no
callback set on ISVNAuthentiationManager that may provide another
credentials, operation fails.

Credentials being used are taken from the default authentication cache
(~/.subversion/auth directory).
You may add the following code:

> ISVNAuthenticationManager authManager =
> SVNWCUtil.createDefaultAuthenticationManager(name, password);

authManager.setAuthenticationProvider(new ISVNAuthenticationProvider() {
...
public SVNAuthentication requestClientAuthentication(String kind,
           SVNURL url, String realm, SVNErrorMessage errorMessage,
SVNAuthentication previousAuth,
           boolean authMayBeStored) {
  // this method will be called when no credentials found, to let you
  // prompt user for credentials.
}
});

> repository.setAuthenticationManager(authManager);
> repositoryRoot = repository.getRepositoryRoot(false).toString();


Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!



On 30 August 2011 08:30, MaSEL <[email protected]> wrote:
>
> I can`t connect to Subversion repository with SVNKit using HTTPS?
> I use the approach that worked earlier with http connection:
>
>  DAVRepositoryFactory.setup();
> repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url));
> ISVNAuthenticationManager authManager =
> SVNWCUtil.createDefaultAuthenticationManager(name, password);
> repository.setAuthenticationManager(authManager);
> repositoryRoot = repository.getRepositoryRoot(false).toString();
>
> I get the
>
> org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication
> required for '<https://daisy.interorigins.com:443> MY repository'
>
> Log is attached.  http://old.nabble.com/file/p32362096/log.txt log.txt
> --
> View this message in context: 
> http://old.nabble.com/One-more-HTTPS-authentication-issue.-tp32362096p32362096.html
> Sent from the SVNKit - Users mailing list archive at Nabble.com.
>
>
>

Reply via email to