我正在考虑在 LabVIEW 中创建一个 OAuth 库,但是为了在开发过程中进行测试,我想使用一些测试服务器,而不会使现有的服务过载real用户。
是否有这样的服务器或者是否有一个我可以自己运行的简单服务器应用程序(Linux 或 Windows)?
http://term.ie/oauth/example/index.php http://term.ie/oauth/example/index.php是 php 代码的一个活生生的例子http://oauth.googlecode.com/svn/code/php/example/ http://oauth.googlecode.com/svn/code/php/example/.
端点是:http://term.ie/oauth/example/request_token.php http://term.ie/oauth/example/request_token.php
http://term.ie/oauth/example/access_token.php http://term.ie/oauth/example/access_token.php
http://term.ie/oauth/example/echo_api.php http://term.ie/oauth/example/echo_api.php
消费者密钥和秘密是:
返回的令牌是:
- 请求令牌:requestkey
- 请求秘密:requestsecret
and
我用它自己的客户端代码测试了它http://term.ie/oauth/example/client.php http://term.ie/oauth/example/client.php它适用于 HMAC 和 PLAINTEXT 签名方法。
RSA 签名需要在此处找到的测试服务器中使用的公钥和私钥:
http://oauth.googlecode.com/svn/code/php/OAuth_TestServer.php http://oauth.googlecode.com/svn/code/php/OAuth_TestServer.php
对于快速而肮脏的测试,这可能会起作用,如果您担心使用其他人的服务器,那么从以下位置部署代码应该相当容易http://oauth.googlecode.com/svn/code/php/ http://oauth.googlecode.com/svn/code/php/在本地或您有权访问的运行 php 的服务器上。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)