curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Curl C support for oauth2

From: Nicolas Mora via curl-library <curl-library_at_cool.haxx.se>
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