Thread (1 message) 1 message, 1 author, 2016-06-15

Re: credential-helpers + remote-helper, starting point?

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:53:54

Junio C Hamano [off-list ref] writes:
Jeff King [off-list ref] writes:
quoted
On Thu, May 24, 2012 at 09:20:08PM +0200, Matthieu Moy wrote:

+This document describes two interfaces: the C API that the credential
+subsystem provides to the rest of git, and the protocol that git uses to
+communicate with system-specific "credential helpers". If you are
+writing git code that wants to look up or prompt for credentials, see
Don't you "prompt" yourself?  The above sounds as if you are delegating
both looking up and prompting to the helper.
It seems I misunderstood how it worked, indeed. I thought the prompting
could also be done by the helper (it seems sensible if you're going to
use your desktop's keyring to also allow the desktop's GUI for prompting
for example).

Looking closely at the code, credential_fill either delegates fetching
data to the remote helper, or does the prompting. IOW, the prompting is
done behind the C API anyway, but most likely from credential.c than
from the external helper. Is that understanding correct?

Thanks,

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help