OAuth测试服务器/应用程序

25

我正在考虑在LabVIEW中创建一个OAuth库,但在开发期间为了测试,我想使用一些测试服务器,而不会过载现有的拥有真实用户的服务。

是否存在这样一个服务器或者是否有一款易于使用的服务器应用程序(Linux或Windows),我可以自己运行?

3个回答

23

http://term.ie/oauth/example/index.php是一个实时示例,展示了在http://oauth.googlecode.com/svn/code/php/example/中找到的PHP代码。

终端点包括:

http://term.ie/oauth/example/request_token.php http://term.ie/oauth/example/access_token.php http://term.ie/oauth/example/echo_api.php

Consumer Key和Secret如下:

  • Consumer Key: key
  • Consumer Secret: secret

返回的token如下:

  • Request token: requestkey
  • Request secret: requestsecret

以及

  • Access token: accesskey
  • Access secret: accesssecret

我用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/部署代码到您本地或运行php的服务器应该是相当容易的。


8

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接