curl-library
Re: Implementing OAuth support into curl?
Date: Sat, 8 May 2010 23:43:23 +0200 (CEST)
On Sat, 8 May 2010, Viksit Gaur wrote:
>> are you going to take the lead of writing the code for this?
>
> Sure.
Great. I completely intend to step up and help out as well.
> I'm as yet unsure about the complexity of the work involved, so I'm looking
> into the INTERNALS document to determine what would need to be done, and how
> trivial/non-trivial it would be. Starting points to look at would be
> appreciated.
I think you can find inspiration from another HTTP authentication
implementation and take it from there. Like for examle Digest. Most of that is
in lib/http_digest.c, with some small parts in lib/http.c I think.
You basically need to provide functions for:
1. receiving oauth-specific incoming headers
2. generating oauth-specific outgoing headers
3. cleanups
But I'll admit I'm not completely into oauth details so there may be more to
it than this, but it should be a start at least.
> I'm guessing IRC might be more productive for some of the lower level
> questions I have at this point.
I'm around in #curl a lot, so it might work fine there!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-05-08