Supporting the Implicit grant type
This recipe shows you how to configure the Implicit grant type, which is appropriate for web applications which run directly on web browsers (such as JavaScript applications). This recipe will provide everything needed to allow the client to use resources in the name of the Resource Owner by accessing an OAuth 2.0 protected API.
Getting ready
To run this recipe, you can use your preferred IDE and must have Java 8 and Maven installed. As this grant type run totally on the web browser, you don't need to run commands to retrieve access tokens as if they were being performed on the server side. Here the access token will be retrieved implicitly when the user grants permissions for third-party applications. This recipe will use Spring Security OAuth2 Framework and, to keep it as straight as possible, we will not add any database support. The source code for this recipe can be downloaded from https://github.com/PacktPublishing/OAuth-2.0-Cookbook/tree/master/Chapter02...