Testing Dropbox using OAuth 2 Authorization Code Grant flow

In this recipe, we build on the previous one by learning how SoapUI supports the full OAuth 2 Authorization Code Grant flow. The actual example used is going to be the same Dropbox one from the previous recipe.

Getting ready

To follow along, you'll ideally have completed the previous recipe or at least have a Dropbox account with an App setup to receive REST requests.

If you are new to OAuth 2 or need a refresher, you may find it helpful to do some background reading on the OAuth's Authorization Code Grant flow. I find oauthlib a safe choice for this:

http://oauthlib.readthedocs.org/en/latest/oauth2/grants/authcode.html

I will cover how things work in the context of Dropbox and SoapUI, shortly. ...

Get SoapUI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.