I am planning an OpenID client in a C ++ multiplayer network game. The hoster will be able to allow only logins from people who can authenticate through OpenID. I also want to only allow certain people to log in.
We already have a simple HTML viewer in our code (and we plan to switch to WebKit), so displaying HTML (to enter the OpenID endpoint) is not really a problem.
We also have code for HTTP requests (we have already migrated to libcurl here).
I did not find C ++ code to execute the rest (actual OpenID endpoint handshake). Is there any C ++ code for this?
If not, where is a good point to start? I have few ideas regarding the internal components of OpenID. Is the code itself complicated?
Is this even possible? I think I saw that I should put the URL of the authentication site in the OpenID endpoint, where it will return if the login is successful. In this case, there is no site where you log in through OpenID, this is a game server.
If this is really a problem for this, we also have our own web server (one for our forum, and we have SourceForge), so we can also do everything there. However, this has a huge drawback that the game depends on some site to enter OpenID, which is very bad - one of the nice advantages of OpenID is gone.
c ++ openid multiplayer
Albert
source share