{"thread":{"id":"31918","subject":"Launch separate program for HTTPS prompt","startedAt":"2012-10-23T14:39:20Z","lastAt":"2012-11-13T15:07:25Z","messageCount":4,"participants":["乙酸鋰","Matthieu Moy","Erik Faye-Lund"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"201735","messageId":"CAHtLG6QY-PYUKbNUicox_Ayh70bUSJOL7LGZrQQMqgbVBDmEiA@mail.gmail.com","threadId":"31918","inReplyTo":null,"subject":"Launch separate program for HTTPS prompt","fromName":"乙酸鋰","fromEmail":"ch3cooli@gmail.com","sentAt":"2012-10-23T14:39:20Z","receivedAt":"2012-10-23T14:39:20Z","isPatch":false,"sender":{"key":"ch3cooli@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2804967?v=4"},"body":"Hi,\n\nCould you launch a separate program for HTTPS prompt like SSH_ASKPASS?\nThis allows GUI programs to answer the trust or not, not via stdin.\n\nRegards,\nch3cooli\n"},{"id":"201736","messageId":"vpq6261nt0x.fsf@grenoble-inp.fr","threadId":"31918","inReplyTo":"CAHtLG6QY-PYUKbNUicox_Ayh70bUSJOL7LGZrQQMqgbVBDmEiA@mail.gmail.com","subject":"Re: Launch separate program for HTTPS prompt","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2012-10-23T14:48:46Z","receivedAt":"2012-10-23T14:48:46Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"乙酸鋰 <ch3cooli@gmail.com> writes:\n\n> Hi,\n>\n> Could you launch a separate program for HTTPS prompt like SSH_ASKPASS?\n> This allows GUI programs to answer the trust or not, not via stdin.\n\nRead about credential helpers, this is what they are meant for, and they\ndo launch separate programs.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"203086","messageId":"CABPQNSYav4K208a1VVP6rK6LhXBo+nkx-DcG4zUsiufnCJkY5g@mail.gmail.com","threadId":"31918","inReplyTo":"vpq6261nt0x.fsf@grenoble-inp.fr","subject":"Re: Launch separate program for HTTPS prompt","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@gmail.com","sentAt":"2012-11-13T14:51:15Z","receivedAt":"2012-11-13T14:51:15Z","isPatch":false,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"On Tue, Oct 23, 2012 at 4:48 PM, Matthieu Moy\n<Matthieu.Moy@grenoble-inp.fr> wrote:\n> 乙酸鋰 <ch3cooli@gmail.com> writes:\n>\n>> Hi,\n>>\n>> Could you launch a separate program for HTTPS prompt like SSH_ASKPASS?\n>> This allows GUI programs to answer the trust or not, not via stdin.\n>\n> Read about credential helpers, this is what they are meant for, and they\n> do launch separate programs.\n>\n\nThe prompting-support for credential helpers didn't survive the\ninclusion; instead we have git_prompt() that consults GIT_ASKPASS and\nSSH_ASKPASS or falls back to git_terminal_prompt().\n"},{"id":"203087","messageId":"CABPQNSbpnmhmaCc8kzKn2+c_MACotOx5SxmaRMzPbnW=hiP7XA@mail.gmail.com","threadId":"31918","inReplyTo":"CAHtLG6Q2LANj8WPMsRzpzKZ=zPbLysSFWs0pxSPNj1j87d_LRw@mail.gmail.com","subject":"Re: Launch separate program for HTTPS prompt","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@gmail.com","sentAt":"2012-11-13T15:07:25Z","receivedAt":"2012-11-13T15:07:25Z","isPatch":false,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"Please don't cull the CC list or top-post. Other people might be\ninterested, and quoting inline will make it easier to understand what\nyou're replying to in that case. I've restored the CC-list and fixed\nthe quoting for you this time.\n\nOn Tue, Nov 13, 2012 at 3:58 PM, 乙酸鋰 <ch3cooli@gmail.com> wrote:\n> 2012/11/13 Erik Faye-Lund <kusmabite@gmail.com>:\n>> On Tue, Oct 23, 2012 at 4:48 PM, Matthieu Moy\n>> <Matthieu.Moy@grenoble-inp.fr> wrote:\n>>> 乙酸鋰 <ch3cooli@gmail.com> writes:\n>>>\n>>>> Hi,\n>>>>\n>>>> Could you launch a separate program for HTTPS prompt like SSH_ASKPASS?\n>>>> This allows GUI programs to answer the trust or not, not via stdin.\n>>>\n>>> Read about credential helpers, this is what they are meant for, and they\n>>> do launch separate programs.\n>>>\n>>\n>> The prompting-support for credential helpers didn't survive the\n>> inclusion; instead we have git_prompt() that consults GIT_ASKPASS and\n>> SSH_ASKPASS or falls back to git_terminal_prompt().\n>\n> Sorry, I don't understand what you mean.\n>\n> But I am asking for a solution of for HTTPS prompt which is similar to\n> the credential part.\n\nQuote from Documentation/technical/api-credentials.txt:\n\n\"Credential helpers are programs executed by git to fetch or save\ncredentials from and to long-term storage (where \"long-term\" is simply\nlonger than a single git process; e.g., credentials may be stored\nin-memory for a few minutes, or indefinitely on disk).\"\n\nIn other words, credential helpers are not intended for prompting the\nuser for a username/password pair. Prompting was included in the first\ncredential-helper proposal, but it didn't survive into the inclusion.\nBut you can override credential queries by setting GIT_ASKPASS or\nSSH_ASKPASS.\n\nI don't know if the credential-system works or not when using\nHTTP/HTTPS, it might be that cURL is the one that does the\ncredential-negotiating in that case. But that's not really related to\ncredential-helpers; it affects the whole credential-system.\n"}]}