{"thread":{"id":"20747","subject":"[git-svn] always prompted for passphrase with subversion 1.6","startedAt":"2009-08-27T00:38:36Z","lastAt":"2010-12-14T14:33:44Z","messageCount":4,"participants":["Tim Potter","Eric Wong","Edward Rudd"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"121830","messageId":"4A95D58C.1070409@hp.com","threadId":"20747","inReplyTo":null,"subject":"[git-svn] always prompted for passphrase with subversion 1.6","fromName":"Tim Potter","fromEmail":"tpot@hp.com","sentAt":"2009-08-27T00:38:36Z","receivedAt":"2009-08-27T00:38:36Z","isPatch":false,"sender":{"key":"tpot@hp.com","avatar":null},"body":"Hi everyone.  I am using git-svn with the Subversion 1.6 client compiled\nwith GNOME Keyring support.  This neat features allows a SSL client\ncertificate password to be cached inside GNOME Keyring instead of being\nprompted to enter it every time.  However the git-svn script doesn't\nappear to know about this and always prompts for a password.\n\nObviously there's some tweak required in the _auth_providers()\nsubroutine but I don't know enough about the Subversion Perl client to\nfigure out a fix.\n\nHas anyone else run in to this problem?  I did a quick search on the\nlist but didn't find anything relevant.\n\n\nRegards,\n\nTim.\n"},{"id":"122486","messageId":"20090905064649.GD22272@dcvr.yhbt.net","threadId":"20747","inReplyTo":"4A95D58C.1070409@hp.com","subject":"Re: [git-svn] always prompted for passphrase with subversion 1.6","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2009-09-05T06:46:50Z","receivedAt":"2009-09-05T06:46:50Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Tim Potter <tpot@hp.com> wrote:\n> Hi everyone.  I am using git-svn with the Subversion 1.6 client compiled\n> with GNOME Keyring support.  This neat features allows a SSL client\n> certificate password to be cached inside GNOME Keyring instead of being\n> prompted to enter it every time.  However the git-svn script doesn't\n> appear to know about this and always prompts for a password.\n> \n> Obviously there's some tweak required in the _auth_providers()\n> subroutine but I don't know enough about the Subversion Perl client to\n> figure out a fix.\n> \n> Has anyone else run in to this problem?  I did a quick search on the\n> list but didn't find anything relevant.\n\nHi Tim,\n\nI think one user wanted to get SSL certificate authentication going but\nmy SSL knowledge was too weak at the time[1] and I think we both forgot\nabout it or lost interest.\n\n[1] and probably still so, though I have recently managed to set\n    *something* up with SSL client certs and maybe it's done\n    right.  SSL is just one of those things that never really\n    \"clicked\" for me (ssh on the other hand...)\n\n-- \nEric Wong\n"},{"id":"122788","messageId":"4AA84F46.6010706@hp.com","threadId":"20747","inReplyTo":"20090905064649.GD22272@dcvr.yhbt.net","subject":"Re: [git-svn] always prompted for passphrase with subversion 1.6","fromName":"Tim Potter","fromEmail":"tpot@hp.com","sentAt":"2009-09-10T00:58:46Z","receivedAt":"2009-09-10T00:58:46Z","isPatch":false,"sender":{"key":"tpot@hp.com","avatar":null},"body":"Eric Wong wrote:\n> Tim Potter <tpot@hp.com> wrote:\n>> Hi everyone.  I am using git-svn with the Subversion 1.6 client compiled\n>> with GNOME Keyring support.  This neat features allows a SSL client\n>> certificate password to be cached inside GNOME Keyring instead of being\n>> prompted to enter it every time.  However the git-svn script doesn't\n>> appear to know about this and always prompts for a password.\n>>\n>> Obviously there's some tweak required in the _auth_providers()\n>> subroutine but I don't know enough about the Subversion Perl client to\n>> figure out a fix.\n>>\n>> Has anyone else run in to this problem?  I did a quick search on the\n>> list but didn't find anything relevant.\n> \n> Hi Tim,\n> \n> I think one user wanted to get SSL certificate authentication going but\n> my SSL knowledge was too weak at the time[1] and I think we both forgot\n> about it or lost interest.\n\nHi Eric.  Thanks for the reply.\n\nIt's probably just a matter of adding another entry to the\n_auth_providers() function in git-svn.  My thought was that there might\nbe a new auth provider in the Subversion 1.6 client library for GNOME\nKeyring support that could be used for this.\n\nI'll have a search through and see what I can find.\n\n\nRegards,\n\nTim.\n"},{"id":"158051","messageId":"4D078048.3040602@outoforder.cc","threadId":"20747","inReplyTo":"4AA84F46.6010706@hp.com","subject":"Re: [git-svn] always prompted for passphrase with subversion 1.6","fromName":"Edward Rudd","fromEmail":"urkle@outoforder.cc","sentAt":"2010-12-14T14:33:44Z","receivedAt":"2010-12-14T14:33:44Z","isPatch":false,"sender":{"key":"urkle@outoforder.cc","avatar":null},"body":"On 09/09/2009 08:58 PM, Tim Potter wrote:\n> It's probably just a matter of adding another entry to the\n> _auth_providers() function in git-svn.  My thought was that there might\n> be a new auth provider in the Subversion 1.6 client library for GNOME\n> Keyring support that could be used for this.\n> \n> I'll have a search through and see what I can find.\n\nI've been tracking subversion bug # 3612\n(http://subversion.tigris.org/issues/show_bug.cfg?id=3612 )  which is on\nthis issue of perl binding not supporting platform specific providers.\n\nA patch was added into subversion 1.6.15 that finally adds bindings for\nperl to access this functionality via a call to\nSVN::Core::auth_get_platform_specific_client_providers and adding it's\ncontents to the array returned by _auth_providers..\n\nThe \"test\" modification I did to git-svn is as follows.\n\nsub _auth_providers () {\n  (\n    SVN::Core::auth_get_platform_specific_client_providers(undef,undef),\n    [\n      SVN::Client::get_simple_provider(),\n      .... the rest of the static provider ...\n    ]\n  )\n}\n\nI'm honestly not sure if it should be at the beginning or end, and this\nalso needs some run-time checking to determine if the user has at least\nSVN 1.6.15 installed\n"}]}