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

Having trouble saving authentication to svn.simple

From: Ben Idoine <beni_at_zoom.co.uk>
Date: Thu, 26 Feb 2009 10:19:03 -0800 (PST)

I'm writing a Windows app using the svn libs. I have set up authentication providers with the following methods:
svn_auth_get_windows_simple_provider
svn_auth_get_simple_prompt_provider

To get authentication details my application calls the simple prompt callback, I supply authentication credentials and set the may_save flag in the svn_auth_cred_simple_t structure to true. The authentication information does not get saved to my local drive. I'd expect it to end up in the Subversion/auth/svn.simple folder, but it doesn't appear there.

I can create the required authentication file by using the svn cmd line. The authentication file appears in the svn.simple folder, and my app appears to find it once it's there (so it doesn't appear to be a problem with the default paths), but it doesn't appear to want to create the file for itself after supplying new credentials.

Is there something I am missing? I've checked my config file, and storing of credentials is not prevented.

I've stepped through the code. I see the vtable for the simple promp provider doesn't include a save_credentials function pointer, but I'd assume that the saving had to do with the windows provider, since that is generating encrypted password values in the credentials file.

Thanks for your help,
Ben.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1234158

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-26 19:26:09 CET

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