Service Virtualization

  • 1.  oauth1.0 Rest API calls

    Posted May 27, 2016 01:11 PM

    I need help with automation RESt API calls that use oauth 1.0. Does anyone have any information on this?



  • 2.  Re: oauth1.0 Rest API calls

    Broadcom Employee
    Posted May 28, 2016 12:00 PM

    More info please? 

    So you want to use your existing elsewhere account to login and run commands to DevTest via REST API?

    Please provide a use case...



  • 3.  Re: oauth1.0 Rest API calls

    Posted Jun 29, 2016 04:17 PM

    Hi Koustubh

    I am using CA dev test to test the back webservice calls. These are REST API that need to be oauth hand shaked before the request is even sent.

    I want to know if there is a way in CA dev test to do this?



  • 4.  Re: oauth1.0 Rest API calls

    Posted Jun 29, 2016 06:08 PM

    Hi vijetha, I wonder if the Inject Http Header global filter will work for you?  You can review this link to see:

    Inject HTTP Header - DevTest Solutions - 9.1 - CA Technologies Documentation 

     

    This filter lets you replace a header in an HTTP call.  When the header does not exist, a new header is added.  You can also specify a step to skip (for example, the login call to get the OAuth token).

     

    I wonder if you can place the OAuth token in this filter to make your process work?  Let us know.



  • 5.  Re: oauth1.0 Rest API calls

    Posted Jun 29, 2016 06:35 PM

    i did but unfortunately it does not work when i use consumer key, consumer secret, oauth token and oauth secret