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.
The SoapUI project DropboxOAuth2
for this recipe is included in the chapter 8
samples.
How to do it...
For now, I'll assume you are happy to do the steps enabling OAuth 2's Authorization Code Grant flow
in SoapUI and then we'll discuss how they...