Search code examples
testingrestoauthrestful-authenticationblack-box

REST client that can handle login via oauth


I am working as a tester on a system based on a Rest API. Part of my job is to use different applications to POST files to the Rest API and then accessing the API directly via a Rest Client to verify that the XML is correct.

So far I have been using the RESTClient firefox add-on.

But now we are getting rid of our old login in favour of Oauth. This all good and all but it makes testing harder since I can't ( don't know how? ) how to access the Rest API using the REST client I am using. And I don't know of any other REST client that can do this.

I need a REST Client/REST browser that can handle login via oauth.

Update:
Hi. I am still looking for more good REST Clients that can handle Oauth. So if you know any I would appreciate a post below.


Solution

  • Turns out RESTClient does support oauth but that the new version has not been released yet.

    Checkout the lastest codes from sourceforge
    http://sourceforge.net/projects/restclient/develop
    And use those files to replace your RESTClient (which should be found in your firefox profile directory
    http://support.mozilla.com/en-US/kb/Profiles#How_to_find_your_profile ).

    Note: I had to hack the source and remove the "realm" parameters since our system didn't want it. According to Oauth spec realm is optional and I have asked the developers of RESTClient to make it optional in the future releases.