Skip to content

http: allow multi-pass authentication

Tay Ray Chuan git 1 version NAK

Status from this message: NAK.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 18 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/2http: maintain curl sessionsDocumentation/config.txt http.c+23 -20 replies
2/2Add an option for using any HTTP authentication scheme, not only basicDocumentation/config.txt http.c+29 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchShawn O. Pearce
SeriesA-b A-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] http: allow multi-pass authentication

This patch series applies on top of master. It enables fetching and pushing over http with the most suitable authentication scheme chosen by curl when the http.authAny or GIT_HTTP_AUTH_ANY is set.

Authorization headers can also be preserved across requests, with at least 1 curl session being preserved by default. This is especially useful for the smart http protocol, where it is hard to rewind and re- send a request.

Nicholas, Martin's patch should lead to similar functionality as your patch (dated Oct 3rd) would. However, unlike your patch, CURLOPT_HTTPAUTH is set even if the user name is not specified explicitly in the remote url, since it's conditional on http.c::user_name being set.

I've tested this with Digest, and I believe this should work with NTLM too.

gsky, could you try this out with NTLM?

=?ISO-8859-15?Q?Martin_Storsj=F6?= (1):
Add an option for using any HTTP authentication scheme, not only
basic

Tay Ray Chuan (1):
http: maintain curl sessions

 Documentation/config.txt |   13 +++++++++++++
 http.c                   |   41 +++++++++++++++++++++++++++++++++++++++--
 2 files changed, 52 insertions(+), 2 deletions(-)

--
Cheers,
Ray Chuan