Re: Curl C support for oauth2
Date: Tue, 12 May 2020 09:33:34 -0400
Hello,
Le 20-05-12 à 04 h 16, Swadik Kedila via curl-library a écrit :
> Hello Sir,
>
> I was trying to use libCurl C for implementing oauth2 request for client
> validation, which includes client id, client secret, redirect uri and
> other parameters. But I could not find any example in internet on how to
> perform oauth2 programatically. Though I got curl command to execute
> same. Could you please share me some example code or links.
>
I've implemented a free OAuth2/OIDC client C library called Iddawc:
https://github.com/babelouest/iddawc
It's based on libcurl underneath, and hides most of the HTTP/Oauth2
complexity to focus on thinking in OAuth2 mode only.
The examples available show how to run simple commands, see
https://github.com/babelouest/iddawc/blob/master/examples/google_example.c
for example.
If you're willing, you're welcome to test it
/Nicolas
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-12