Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • SoapUI Cookbook
  • Toc
  • feedback
SoapUI Cookbook

SoapUI Cookbook

By : Rupert Anderson
4 (5)
close
SoapUI Cookbook

SoapUI Cookbook

4 (5)
By: Rupert Anderson

Overview of this book

This book is aimed at developers and technical testers who are looking for a quick way to take their SoapUI skills and understanding to the next level. Even if you are new to SoapUI but have basic Java skills and a reasonable grasp of RESTFul and Soap web services, then you should have no problem making use of this book.
Table of Contents (13 chapters)
close
12
Index

Testing Dropbox using a pregenerated OAuth 2 Access Token


This is a nice easy example of how to use SoapUI's OAuth 2 support to access Dropbox. It's easier because we'll start from the point of having an OAuth 2 Access Token already generated via the Dropbox UI, which cuts out most of the full flows seen in the next two recipes. The example shows how to use an Access Token to make authenticated calls to the Dropbox API, and test whether a particular file is present.

To perform the steps of this recipe, you will either need to have a Dropbox account or sign up for a free one.

Getting ready

Before we get going, it is important to understand what parts of the OAuth 2 process are going to happen here. If we consider the full OAuth 2 Authorization Code Grant flow as follows:

Then, for this example, we are only going to use SoapUI to make the API request using a pregenerated Access Token (the final exchange in the preceding diagram). The Access Token will be generated using the Dropbox UI, as we'll...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete