* Launch separate program for HTTPS prompt @ 2012-10-23 14:39 乙酸鋰 2012-10-23 14:48 ` Matthieu Moy 0 siblings, 1 reply; 4+ messages in thread From: 乙酸鋰 @ 2012-10-23 14:39 UTC (permalink / raw) To: git Hi, Could you launch a separate program for HTTPS prompt like SSH_ASKPASS? This allows GUI programs to answer the trust or not, not via stdin. Regards, ch3cooli ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Launch separate program for HTTPS prompt 2012-10-23 14:39 Launch separate program for HTTPS prompt 乙酸鋰 @ 2012-10-23 14:48 ` Matthieu Moy 2012-11-13 14:51 ` Erik Faye-Lund 0 siblings, 1 reply; 4+ messages in thread From: Matthieu Moy @ 2012-10-23 14:48 UTC (permalink / raw) To: 乙酸鋰; +Cc: git 乙酸鋰 <ch3cooli@gmail.com> writes: > Hi, > > Could you launch a separate program for HTTPS prompt like SSH_ASKPASS? > This allows GUI programs to answer the trust or not, not via stdin. Read about credential helpers, this is what they are meant for, and they do launch separate programs. -- Matthieu Moy http://www-verimag.imag.fr/~moy/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Launch separate program for HTTPS prompt 2012-10-23 14:48 ` Matthieu Moy @ 2012-11-13 14:51 ` Erik Faye-Lund [not found] ` <CAHtLG6Q2LANj8WPMsRzpzKZ=zPbLysSFWs0pxSPNj1j87d_LRw@mail.gmail.com> 0 siblings, 1 reply; 4+ messages in thread From: Erik Faye-Lund @ 2012-11-13 14:51 UTC (permalink / raw) To: Matthieu Moy; +Cc: 乙酸鋰, git On Tue, Oct 23, 2012 at 4:48 PM, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote: > 乙酸鋰 <ch3cooli@gmail.com> writes: > >> Hi, >> >> Could you launch a separate program for HTTPS prompt like SSH_ASKPASS? >> This allows GUI programs to answer the trust or not, not via stdin. > > Read about credential helpers, this is what they are meant for, and they > do launch separate programs. > The prompting-support for credential helpers didn't survive the inclusion; instead we have git_prompt() that consults GIT_ASKPASS and SSH_ASKPASS or falls back to git_terminal_prompt(). ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CAHtLG6Q2LANj8WPMsRzpzKZ=zPbLysSFWs0pxSPNj1j87d_LRw@mail.gmail.com>]
* Re: Launch separate program for HTTPS prompt [not found] ` <CAHtLG6Q2LANj8WPMsRzpzKZ=zPbLysSFWs0pxSPNj1j87d_LRw@mail.gmail.com> @ 2012-11-13 15:07 ` Erik Faye-Lund 0 siblings, 0 replies; 4+ messages in thread From: Erik Faye-Lund @ 2012-11-13 15:07 UTC (permalink / raw) To: 乙酸鋰; +Cc: GIT Mailing-list Please don't cull the CC list or top-post. Other people might be interested, and quoting inline will make it easier to understand what you're replying to in that case. I've restored the CC-list and fixed the quoting for you this time. On Tue, Nov 13, 2012 at 3:58 PM, 乙酸鋰 <ch3cooli@gmail.com> wrote: > 2012/11/13 Erik Faye-Lund <kusmabite@gmail.com>: >> On Tue, Oct 23, 2012 at 4:48 PM, Matthieu Moy >> <Matthieu.Moy@grenoble-inp.fr> wrote: >>> 乙酸鋰 <ch3cooli@gmail.com> writes: >>> >>>> Hi, >>>> >>>> Could you launch a separate program for HTTPS prompt like SSH_ASKPASS? >>>> This allows GUI programs to answer the trust or not, not via stdin. >>> >>> Read about credential helpers, this is what they are meant for, and they >>> do launch separate programs. >>> >> >> The prompting-support for credential helpers didn't survive the >> inclusion; instead we have git_prompt() that consults GIT_ASKPASS and >> SSH_ASKPASS or falls back to git_terminal_prompt(). > > Sorry, I don't understand what you mean. > > But I am asking for a solution of for HTTPS prompt which is similar to > the credential part. Quote from Documentation/technical/api-credentials.txt: "Credential helpers are programs executed by git to fetch or save credentials from and to long-term storage (where "long-term" is simply longer than a single git process; e.g., credentials may be stored in-memory for a few minutes, or indefinitely on disk)." In other words, credential helpers are not intended for prompting the user for a username/password pair. Prompting was included in the first credential-helper proposal, but it didn't survive into the inclusion. But you can override credential queries by setting GIT_ASKPASS or SSH_ASKPASS. I don't know if the credential-system works or not when using HTTP/HTTPS, it might be that cURL is the one that does the credential-negotiating in that case. But that's not really related to credential-helpers; it affects the whole credential-system. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-13 15:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-23 14:39 Launch separate program for HTTPS prompt 乙酸鋰
2012-10-23 14:48 ` Matthieu Moy
2012-11-13 14:51 ` Erik Faye-Lund
[not found] ` <CAHtLG6Q2LANj8WPMsRzpzKZ=zPbLysSFWs0pxSPNj1j87d_LRw@mail.gmail.com>
2012-11-13 15:07 ` Erik Faye-Lund
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox