1 Jun 2012 08:40
Re: introduced an auth callback
Jeff King <peff <at> peff.net>
2012-06-01 06:40:52 GMT
2012-06-01 06:40:52 GMT
On Thu, May 17, 2012 at 08:46:26PM +0000, Joe Mason wrote: > I've pushed 3 new patches to > https://github.com/JoeNotCharles/curl/commits/authcallback_api2, and > also updated > https://github.com/JoeNotCharles/curl/commits/authcallback_api2_squashed > with a force push. > > - added a "succeeded" member to curl_auth_info, which is always 0. (I > tried to find a place to add a call to the auth callback once auth is > successful, but couldn't find the right place. Someone with more > knowledge of curl may have to do this) > - renamed CURLAUTH_TYPE_HOST to CURLAUTH_TYPE_HTTP so we can add > TYPE_FTP, TYPE_SMTP, etc later > - fixed the bug with CURLOPT_FAILONERROR Sorry for the slow response. I got a chance tonight to play more with my proof-of-concept patch to make git use the auth callback. I confirmed that the FAILONERROR bug is fixed. However, I did run into a new bug. If the requested URL is something like: https://example.com/ then it works fine. But if it contains a username, like: https://user <at> example.com/ then the callback is never invoked, and curl returns a 401. The problem seems to be that the logic in Curl_http_auth_act checks(Continue reading)

> > * Introduce PLAIN and NTLM authentication mechanisms
> > * Add new test cases for these
>
> Sounds awesome. I'll take off on a little work trip to China this week so
I
> might not respond to anything in a while, but don't let that stop you!
RSS Feed