Is there any C-language (or even C++) OpenID library around somewhere?
Asked Answered
H

3

6

One of the OpenID developers pages advertises one, but that turns out to be a typo. I find none on Google.

Does anyone know of an OpenID interface library written in the C1 language?

Thanks!


1 Held by some to be archaic -- so '70s dontcha' know -- but there are those who love it.

Hesitate answered 4/6, 2011 at 17:55 Comment(7)
OpenID's popularity seems to be fading a bit as well as it is being overtaken by other tools. Are you sure you want to use your archaic programming language to code for an archaic authentication service?Reel
@DOK: what's archaic about C++?Panada
@DOK: I'm sure he's got his reasons for doing things this way. It's a perfectly legitimate question, even though I myself would probably never do this.Neckband
@Panada Did you actually read the question? Pete is humorously referring to C (not C++) that way.Reel
@DOK: Since I saw this xkcd I'm never reading footnotes again. Oh wait...Panada
@Panada -- +1 for the mention of xkcd :-)Hesitate
@Reel -- Thanks! If OpenID is fading, I'm glad: it's a real pita AKAICS: a hemorrhoid for André the Giant.Hesitate
H
2

After reading the comment from @DOK I dug a little deeper. Both the Google authentication service and the Yahoo! authentication service use the OAuth open protocol.

Authentication -- the "API," as I called it -- looks to be implemented entirely as a series of HTTP-message interchanges with the service, so the appropriate API for a C program is libcurl.

Hesitate answered 5/6, 2011 at 22:27 Comment(1)
Found your own answer, good for you. I suppose we should note in passing that SO accepts OpenID and is also a provider for it.Reel
L
2

I don't know of one for C, but libopkele appears to be one such library for C++. However, I have never used it, so I cannot vouch for it.

Locality answered 4/6, 2011 at 18:9 Comment(0)
H
2

After reading the comment from @DOK I dug a little deeper. Both the Google authentication service and the Yahoo! authentication service use the OAuth open protocol.

Authentication -- the "API," as I called it -- looks to be implemented entirely as a series of HTTP-message interchanges with the service, so the appropriate API for a C program is libcurl.

Hesitate answered 5/6, 2011 at 22:27 Comment(1)
Found your own answer, good for you. I suppose we should note in passing that SO accepts OpenID and is also a provider for it.Reel
A
2

ZmartZone has provided liboauth2 on GitHub. Currently, documentation is essentially non-existent but there is contact info in the README to get help from the developers. You can find the library here:

https://github.com/zmartzone/liboauth2

Note: This developer is the same developer that provided one of the certified Relaying Party solutions listed here: https://openid.net/developers/certified/#RPLibs

Angularity answered 22/9, 2021 at 21:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.