Linux C++ 上的 OAuth 2.0(适用于 UNIX)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8708745/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
OAuth 2.0 on C++ (for UNIX)
提问by raladin
I was wondering what the best implementation/library (preferably with sample code implementing the library) for OAuth 2.0 on C++. Application runs on a Linux machine.
我想知道什么是 C++ 上 OAuth 2.0 的最佳实现/库(最好带有实现库的示例代码)。应用程序在 Linux 机器上运行。
It would be great if you can point me to the right implementation, tested and works; I found some online about Twitter but I am not quite sure if they satisfy OAuth 2.0 rather than OAuth 1.0.
如果您能指出正确的实现、测试和工作,那就太好了;我在网上找到了一些关于 Twitter 的信息,但我不太确定它们是否满足 OAuth 2.0 而不是 OAuth 1.0。
Thanks!
谢谢!
回答by clsung
Try liboauthcpp, the only requirement is CMake.
尝试liboauthcpp,唯一的要求是CMake。
回答by user2352497
http://www.webtoolkit.eu/wt/has an OAuth implementation. Looking over the source code suggests it might be OAuth2. They include code for OAuth authentication (not sure if I'm using the term correctly) with google and facebook.
http://www.webtoolkit.eu/wt/有一个 OAuth 实现。查看源代码表明它可能是 OAuth2。它们包括用于 google 和 facebook 的 OAuth 身份验证代码(不确定我是否正确使用了该术语)。