OAuth 测试服务器/应用程序 [英] OAuth test server / application

查看:44
本文介绍了OAuth 测试服务器/应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑在 LabVIEW 中创建一个 OAuth 库,但为了在开发过程中对此进行测试,我想使用一些测试服务器,而不会使具有真实用户的现有服务过载.

是否有这样的服务器,或者是否有我可以自己运行的简单服务器应用程序(Linux 或 Windows)?

解决方案

http://term.ie/oauth/example/index.phphttp://oauth.googlecode.com/svn/code/php/example/.

端点是:http://term.ie/oauth/example/request_token.phphttp://term.ie/oauth/example/access_token.phphttp://term.ie/oauth/example/echo_api.php

消费者密钥和秘密是:

  • 消费者密钥:key
  • 消费者秘密:秘密

返回的令牌是:

  • 请求令牌:requestkey
  • 请求机密:requestsecret

  • 访问令牌:accesskey
  • 访问密码: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 的服务器上.>

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?

解决方案

http://term.ie/oauth/example/index.php is a live example of the php code found in http://oauth.googlecode.com/svn/code/php/example/.

The endpoints are: http://term.ie/oauth/example/request_token.php http://term.ie/oauth/example/access_token.php http://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 http://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:

http://oauth.googlecode.com/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 http://oauth.googlecode.com/svn/code/php/ locally or on a server you have access to that is running php.

这篇关于OAuth 测试服务器/应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆