Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Http Client application to test REST API with oauth [closed]

I am currently developing an application that will have a regular web interface but also a RESTful API that will be used mostly on mobile phone apps. I am using the Rails OAuth-plugin here, so my API supports OAuth 1 and 2. This works all fine so far.

The only problem I have is with testing the API. I have found some tools that I can use to make requests to my API like RESTConsole for Chrome or RESTed and they all can test OAuth, but they don't provide an API themselves that I can use as the callback service. When I register an OAuth client in my application I have to enter some fake callback URL, do the authorization process and then get the OAuth token from the database and insert it into the console manually. Especially when testing the revocation of tokens this gets pretty cumberome.

Does anybody know of any test clients that can totally automate the testing process? That means that the test cleint includes some sort of callable endpoint that I can use as the callback URL for my app...

Thanks for your help in advance. I've been searching the internet for quite some time now and this is my last resort before starting to develop my own.


I will be going to accept Jon's answer, although I am not very pleased with the solution ... Whoever is interested, I'm going to roll my own little test client. If anybody is interested: https://github.com/klaustopher/knole

like image 723
klaustopher Avatar asked May 07 '26 21:05

klaustopher


1 Answers

Apigee offers a free API Console that supports a large number of authorization schemes, including OAuth 1. Not sure if it supports 2-legged OAuth, but you can definitely define a callback within their service.

like image 89
Jon Nylander Avatar answered May 10 '26 12:05

Jon Nylander