OAuth 测试服务器/应用程序

编程入门 行业动态 更新时间:2024-10-18 10:22:32
本文介绍了OAuth 测试服务器/应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在考虑在 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 测试服务器/应用程序

本文发布于:2023-11-15 03:57:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1590931.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   服务器   测试   OAuth

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!