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

Re: Failure using webdav basic auth by git client

From
Jeff King <peff@peff.net>
Date
Nov 11, 2012, 18:28 UTC
Message-ID
<20121111182842.GC21654@sigill.intra.peff.net>
In-Reply-To
<121F1C4AA6A845229D3DF5808B4F0F9E@black>
On Sun, Nov 11, 2012 at 01:09:02PM -0500, Jason Pyeron wrote:
Show 7 quoted lines
> > My google fu has failed me on this issue. I am trying to setup http(s)
> > repositories for git. If I require authenticated users then git asks
> > for a username and password for the first volley of communications, but
> > then does not include the Authorization header on subsequent requests.
> [...]
> > > GET /git/test/info/refs?service=git-receive-pack HTTP/1.1
> > User-Agent: git/1.7.9

Can you try with a more recent git version? There were some bugs with on-demand http auth when using the dumb protocol (which I see you are using). They were fixed in v1.7.10.2 and higher.

Also, consider setting up the smart-http protocol, as it is way more efficient.

-Peff
Previous: Jason PyeronNext: Pyeron, Jason J CTR (US)
Message 2 of 3 in “RE: Failure using webdav basic auth by git client”
  1. Jason PyeronNov 11, 2012
  2. Jeff KingNov 11, 2012
  3. Pyeron, Jason J CTR (US)Nov 12, 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.