git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bearer token authorization with HTTPS transport
@ 2014-12-30 19:24 David Renshaw
  2014-12-30 23:56 ` brian m. carlson
  0 siblings, 1 reply; 6+ messages in thread
From: David Renshaw @ 2014-12-30 19:24 UTC (permalink / raw)
  To: git

Hi,
I would like to be able to serve a git repository over HTTPS from a
web server that requires OAuth2-style bearer tokens for authorization.
For more context, see this thread:
https://groups.google.com/forum/#!topic/sandstorm-dev/4oigfb4-9E4

Does anyone here have any advice about how to convince a git client to
add an "Authorization: Bearer <token>" header?

I can think of a few approaches:

(1) I could modify the curl remote helper to insert the header if it
sees a "bearertoken" config option. I have in fact written a
proof-of-concept patch that does this (see
https://github.com/dwrensha/git/commit/4da7b64b85b3b6652abe7), but I
don't know how much of chance something like this has of getting
merged into the mainline git client.

(2) I could write a new remote helper for, say, a "https+bearertoken"
transport. This seems like it would be more work than (1), but it
would also allow easier installation without interfering with the rest
of git.

(3) I could write a proxy server that inserts the header, designed to
run on the same machine as the client. This feels rather heavyweight.

Am I missing anything?

Thanks,
David

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-06 16:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-30 19:24 bearer token authorization with HTTPS transport David Renshaw
2014-12-30 23:56 ` brian m. carlson
2014-12-31  1:42   ` Jeff King
2014-12-31  1:57     ` Jeff King
2015-01-06  2:41     ` brian m. carlson
2015-01-06 16:37       ` David Renshaw

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 NNTP newsgroup(s).