Book Image

SoapUI Cookbook

By : Rupert Anderson
Book Image

SoapUI Cookbook

By: Rupert Anderson

Overview of this book

Table of Contents (19 chapters)
SoapUI Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Testing Dropbox using OAuth 2 Implicit Grant flow


In this recipe, we again build directly on the previous one by learning how SoapUI supports the full OAuth 2 Implicit Grant flow. This flow is slightly less complicated than the Authorization Code Grant flow, less secure as it lacks client authentication, and is normally used by browser-based clients.

The example used is exactly the same Dropbox one featured in the previous two recipes. However, the steps here are very short as in the previous recipe's setup, and the concepts will be reused. Meaning that there is far more to understand here than to do!

Getting ready

The SoapUI project DropboxOAuth2 for this recipe is included in the chapter 8 samples.

How to do it...

Given the previous Dropbox test app OAuth 2 config and DropboxProfile under the Auth tab, all we need to do is to use the Implicit Grant flow:

  1. Under the REST Test Request option's Auth tab, click on the Get Token link to bring up the Get Access Token from the authorization server window...