This recipe will present you with how to implement a client application that uses the Implicit grant type to retrieve an access token and to retrieve a user's profile which is protected by the OAuth 2.0 protocol.
To run this recipe, make sure you have an OAuth 2.0 Provider running on your machine. I recommend you use the project implicit-server
presented in Chapter 2, Implementing Your Own OAuth 2.0 Provider. This project is available on GitHub at https://github.com/PacktPublishing/OAuth-2.0-Cookbook/tree/master/Chapter02/implicit-server. In addition, this recipe requires the use of the database and table created for the first recipe, which was clientdb
and client_user
respectively. To have an OAuth 2.0 Provider running, you will need Java 8, Maven, jQuery, and your preferred IDE (remember that most examples are presented using Eclipse).