我正在考虑在 LabVIEW 中创建一个 OAuth 库,但为了在开发过程中对此进行测试,我想使用一些测试服务器,而不会使具有真实用户的现有服务过载.
是否有这样的服务器,或者是否有我可以自己运行的简单服务器应用程序(Linux 或 Windows)?
解决方案term.ie/oauth/example/index.php 是 oauth.googlecode/svn/code/php/example/.
端点是:term.ie/oauth/example/request_token.phpterm.ie/oauth/example/access_token.phpterm.ie/oauth/example/echo_api.php
消费者密钥和秘密是:
- 消费者密钥:key
- 消费者秘密:秘密
返回的令牌是:
- 请求令牌:requestkey
- 请求机密:requestsecret
和
- 访问令牌:accesskey
- 访问密码:accesssecret
我在 term.ie/oauth/example 用自己的客户端代码对其进行了测试/client.php 并使用 HMAC 和 PLAINTEXT 签名方法.
RSA 签名需要在这里找到的测试服务器中使用的公钥和私钥:
oauth.googlecode/svn/code/php/OAuth_TestServer.php
对于快速而肮脏的测试,这可能会奏效,如果您担心使用其他人的服务器,那么从 oauth.googlecode/svn/code/php/ 本地或在您有权访问的运行 php 的服务器上.>
I am thinking about creating an OAuth library in LabVIEW, but for testing this during development I would like to use some test server, without overloading an existing service that has real users.
Is there such a server or is there an easy server application (Linux or Windows) that I can run myself?
解决方案term.ie/oauth/example/index.php is a live example of the php code found in oauth.googlecode/svn/code/php/example/.
The endpoints are: term.ie/oauth/example/request_token.php term.ie/oauth/example/access_token.php term.ie/oauth/example/echo_api.php
The consumer key and secret are:
- Consumer Key: key
- Consumer Secret: secret
The tokens returned are:
- Request token: requestkey
- Request secret: requestsecret
and
- Access token: accesskey
- Access secret: accesssecret
I tested it with it's own client code at term.ie/oauth/example/client.php and it worked with HMAC and PLAINTEXT signature methods.
RSA signature would require the public and private keys used in the test server found here:
oauth.googlecode/svn/code/php/OAuth_TestServer.php
For a quick and dirty test this'll probably work, if you're worried about using someone elses server, it should be fairly easy to deploy the code from oauth.googlecode/svn/code/php/ locally or on a server you have access to that is running php.
更多推荐
OAuth 测试服务器/应用程序
发布评论