]> git.ipfire.org Git - thirdparty/git.git/commit - http.c
http: pass http.cookiefile using CURLOPT_COOKIEFILE
authorDuncan Brown <dabrown@physics.syr.edu>
Thu, 2 Jun 2011 20:31:25 +0000 (16:31 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Jun 2011 16:29:19 +0000 (09:29 -0700)
commitbcfb95dde46bd7cf2c6673ab8a3e6f0c0429906e
tree02711596321041e65170468fe58a0abdcd7fcf9d
parenta6605d76cdad37ed3c55a7be4d2e0af0f4721bb2
http: pass http.cookiefile using CURLOPT_COOKIEFILE

If the config option http.cookiefile is set, pass this file to libCURL using
the CURLOPT_COOKIEFILE option. This is similar to calling curl with the -b
option.  This allows git http authorization with authentication mechanisms
that use cookies, such as SAML Enhanced Client or Proxy (ECP) used by
Shibboleth.

To use SAML/ECP, the user needs to request a session cookie with their own ECP
code. See for example:

<https://wiki.shibboleth.net/confluence/display/SHIB2/ECP>

Once the cookie file has been created, it can be passed to git with, e.g.

git config --global http.cookiefile "/home/dbrown/.curlcookies"

libCURL will then pass the appropriate session cookies to the git http server.

Signed-off-by: Duncan Brown <duncan.brown@ligo.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
http.c