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

Re: authentication cache

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-02-21 01:33:00 CET

"SteveKing" <steveking@gmx.ch> writes:

> > creates a ctx object
> > creates an auth_baton with various providers
> > run many subcommands
> > calls first_creds, next_creds, next_creds ...
> > calls first_creds, next_creds, next_creds ...
> > calls first_creds, next_creds, next_creds ...
> > exits
> >
> > I think the solution here is simple: the auth_baton can cache the last
> > returned set of credentials (of each type). Then we change first_creds()
> > to always return the cache, if available. Pretty easy.
> Since I'm not very familiar with that code would you do it please?

Finished. I'm testing my patch now.

My test case is to run 'svn ls URL1 URL2' on a read-protected
repository. At the moment, svn will prompt you twice, because it's
two seperate calls to svn_client_ls(). With my patch, the second
prompt doesn't happen anymore. The credentials are being cached in
the auth_baton between calls to client functions.

I'll commit as soon as I'm convinced I didn't break anything, probably
late tonight. :-)

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 20 23:35:22 2003

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