Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OAuth test server / application

Tags:

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?

like image 870
Ton Plomp Avatar asked Aug 19 '10 18:08

Ton Plomp


People also ask

What is OAuth testing?

Authentication is about gaining access. Authorization is about permissions. This post is about testing oAuth client code, which is the code you write so a user can give you permission to connect with another app on their behalf. So it's about authorization.

What is OAuth2 server?

OAuth 2.0, which stands for “Open Authorization”, is a standard designed to allow a website or application to access resources hosted by other web apps on behalf of a user. It replaced OAuth 1.0 in 2012 and is now the de facto industry standard for online authorization.

What is an OAuth application?

OAuth, which is pronounced "oh-auth," enables an end user's account information to be used by third-party services, such as Facebook and Google, without exposing the user's account credentials to the third party.


2 Answers

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.

like image 195
Hylidan Avatar answered Sep 22 '22 06:09

Hylidan


you can try OAuth.io and their open source daemon oauthd on Github : https://github.com/oauth-io/oauthd

like image 29
user2255745 Avatar answered Sep 18 '22 06:09

user2255745