From: roucherj <roucherj@telesun.imag.fr>
To: Jeff King <peff@peff.net>
Cc: <git@vger.kernel.org>, <matthieu.moy@imag.fr>,
<kim-thuat.nguyen@ensimag.fr>, <pavel.volek@ensimag.fr>,
<javier.roucher-iglesias@ensimag.fr>
Subject: Re: credential-helpers + remote-helper, starting point?
Date: Fri, 25 May 2012 15:28:39 +0200 [thread overview]
Message-ID: <5edbcd2530e49e719129f799f8c78dd3@telesun.imag.fr> (raw)
In-Reply-To: <20120524182110.GE3161@sigill.intra.peff.net>
On Thu, 24 May 2012 14:21:10 -0400, Jeff King wrote:
> On Thu, May 24, 2012 at 05:14:35PM +0200, roucherj wrote:
>
>> I want to know if anyone can help me with git-credential-helpers we
>> are trying to use git-credential-helpers in the git-mediawiki
>> (implemented as a remote-helper).
>> We need to ask for the login/pass of the wiki and it would be nice
>> if
>> we can use credential-helpers to manage this credentials.
>
> Yeah, I think it makes sense to use the credential-helpers.
>
>> Anyone can send me a starting point, like a url with the
>> documentation of git-credential-helpers?
>
> Try:
>
>
>
> https://github.com/git/git/blob/master/Documentation/technical/api-credentials.txt
>
> But that is the C API, and I assume you are building on the existing
> mediawiki helper that is written in perl. So I think what you really
> want is a "git credential" command that will let scripts hook into
> the
> credential API. Something like:
>
> $ git credential get https://example.com
> username=bob
> password=secret
>
> $ cat <<\EOF | git credential store https://example.com
> username=bob
> password=secret
> EOF
>
> $ cat <<\EOF | git credential erase https://example.com
> username=bob
> password=secret
> EOF
>
> I had planned eventually to do something like this for git-svn, but
> realized that it was more sane to just let svn library handle the
> credential storage.
>
> Do you guys want to try writing "git credential" as above? It might
> be a
> fun side project, but I know you are also on a limited timeframe for
> your project. I can work on it if you don't have time.
>
> -Peff
Jeff thanks you for helping me with use credentials-helpers with
git-remote
I will try to code your proposed solution.
making something like that:
+-----+ -----> +----------------------+
| git | pipe | git-remote-mediawiki |
+-----+ <----- +----------------------+
/\ ||
|| pipe ||
|| \/
+----------------+ -----> O
| git-credential | <----- -|-
+----------------+ / \
/\ || User
|| pipe ||
|| \/
+-------------------------+
| git-credentials-helpers |
+-------------------------+
next prev parent reply other threads:[~2012-05-25 13:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-24 15:14 credential-helpers + remote-helper, starting point? roucherj
2012-05-24 18:21 ` Jeff King
2012-05-24 19:20 ` Matthieu Moy
2012-05-24 20:01 ` Jeff King
2012-05-24 20:23 ` Matthieu Moy
2012-05-24 22:09 ` Junio C Hamano
2012-05-25 9:15 ` Matthieu Moy
2012-05-25 13:28 ` roucherj [this message]
2012-05-25 20:35 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5edbcd2530e49e719129f799f8c78dd3@telesun.imag.fr \
--to=roucherj@telesun.imag.fr \
--cc=git@vger.kernel.org \
--cc=javier.roucher-iglesias@ensimag.fr \
--cc=kim-thuat.nguyen@ensimag.fr \
--cc=matthieu.moy@imag.fr \
--cc=pavel.volek@ensimag.fr \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).