git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
May 25, 2012, 09:15 UTC
Message-ID
<vpqfwaotye9.fsf@bauges.imag.fr>
In-Reply-To
<7vtxz5ut84.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
> Jeff King <peff@peff.net> writes:
>
>> 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/
Previous: Junio C HamanoNext: roucherj
Message 7 of 9 in “credential-helpers + remote-helper, starting point?”
  1. roucherjMay 24, 2012
  2. Jeff KingMay 24, 2012
  3. Matthieu MoyMay 24, 2012
  4. Jeff KingMay 24, 2012
  5. Matthieu MoyMay 24, 2012
  6. Junio C HamanoMay 24, 2012
  7. Matthieu MoyMay 25, 2012
  8. roucherjMay 25, 2012
  9. Jeff KingMay 25, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.