On Mon, Dec 15, 2008 at 11:09:11AM +0100, Götz Reyher wrote:
> Hi all,
>
> Reposting this mail to the users mailing list.
>
> I've got a question concerning the switching of user credentials
> (username and / or password) that successfully authenticated on a
> Subversion working copy. Our users are given the possibility to choose
> different credentials via a dedicated client UI. The question is if
> there's a way to trigger Subversion's authentication callback
> mechanism via an API call and tell Subversion to use the new
> credentials instead of the old ones? I've tried out lot of stuff, but
> apparently didn't find the right way of doing this. The application
> does not write the credentials to the local disk (/auth/...). So every
> authentication only works through the callback mechanism.
>
> Thanks a lot for your help.
I'm not exactly sure I understand what you are trying to achieve,
but what comes to my mind is:
Subversion caches *one* set of credentials per authentication realm,
the name of which is defined in the server config file.
So you can only replace credentials by deleting the cache file
for the realm, which causes Subversion to ask for (potentially
new) credentials again.
If you want to switch between multiple sets of credentials without
having to type them all over again every time, the only solution
I can think of is having a script that swaps cache files behind
Subversion's back. Not pretty, but all you can do with the current
auth caching implementation, I guess.
Stefan
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=984613
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-15 20:11:02 CET