Re: [PATCH v3 00/11] Enhance credential helper protocol to include auth headers
- From
Matthew John Cheetham <mjcheetham@outlook.com>
- Date
- Dec 12, 2022, 22:07 UTC
- Message-ID
- <AS2PR03MB9815205F73EFE1D5DBF17510C0E29@AS2PR03MB9815.eurprd03.prod.outlook.com>
- In-Reply-To
- <CAGJzqs=o2O+W=Uecu+TJ0Nuw7FsehocKu4Dyko2iKdz5HyiKrA@mail.gmail.com>
On 2022-11-03 12:00, M Hickford wrote:
Show 21 quoted lines
> On Wed, 2 Nov 2022 at 22:09, Matthew John Cheetham via GitGitGadget > <gitgitgadget@gmail.com> wrote: >> >> `authtype`:: >> >> Indicates the type of authentication scheme that should be used by Git. >> Credential helpers may reply to a request from Git with this attribute, >> such that subsequent authenticated requests include the correct >> `Authorization` header. >> If this attribute is not present, the default value is "Basic". >> Known values include "Basic", "Digest", and "Bearer". >> If an unknown value is provided, this is taken as the authentication >> scheme for the `Authorization` header, and the `password` field is >> used as the raw unencoded authorization parameters of the same header. > > Do you have an example using authtype=Digest? Would the helper > populate the password field with the user's verbatim password or the > Digest challenge response? Put another way, is the Digest > challenge-response logic in Git (libcurl) or the helper? > > https://www.rfc-editor.org/rfc/rfc7616#section-3.4
Digest should be handled by libcurl, but you've spotted that I missed configuring libcurl here to select digest over basic for a returned username and password.
You may have noticed I've dropped these `authtype`/response config patches from the latest iteration (v4) as I intend to expand this part in a separate future series. I'll be sure to specifically test and handle digest here! Thanks for spotting :)
Thanks, Matthew