代码之家  ›  专栏  ›  技术社区  ›  Ton Plomp

OAuth测试服务器/应用程序

  •  25
  • Ton Plomp  · 技术社区  · 14 年前

    我正在考虑在LabVIEW中创建OAuth库,但是为了在开发过程中测试这个库,我希望使用一些测试服务器,而不会使已经存在的现有服务过载 真实的 用户。

    4 回复  |  直到 10 年前
        1
  •  23
  •   Mike 'Pomax' Kamermans    10 年前

    http://term.ie/oauth/example/index.php 是在中找到的php代码的一个实例 http://oauth.googlecode.com/svn/code/php/example/ .

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

    使用者密钥和密码是:

    • 消费者秘笈:秘笈

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

    • 访问令牌:accesskey

    我用它自己的客户端代码在 http://term.ie/oauth/example/client.php 它使用HMAC和明文签名方法。

    http://oauth.googlecode.com/svn/code/php/OAuth_TestServer.php

    对于一个快速而肮脏的测试,这可能会起作用,如果您担心使用其他人的服务器,那么从服务器部署代码应该相当容易 http://oauth.googlecode.com/svn/code/php/

        2
  •  8
  •   user2255745    11 年前

    你可以试试OAuth.io文件以及Github上的开放源码守护程序oauthd: https://github.com/oauth-io/oauthd

        3
  •  1
  •   rossa    10 年前

    您可以尝试ApiFest OAuth 2.0服务器( https://github.com/apifest/apifest-oauth20 ). 按照所述步骤启动服务器。好好享受!