This recipe shows you how to use Spring Security OAuth2 to streamline the development of OAuth 2.0 client registration so that you do not have to worry about writing a code that interacts with the database. As you will learn, Spring Security OAuth2 provides an abstraction, leaving you in charge of creating just controller code and the respective views.
To run this recipe, we have to create an OAuth 2.0 Provider project which has at least one registered user (which is the Resource Owner), and we have to use one relational database (MySQL for this recipe) and configure it appropriately, as we did for rdbms-server
project that was created for the recipe, Using a relational database to store tokens and client details.
The source code for this recipe is available on GitHub at https://github.com/PacktPublishing/OAuth-2.0-Cookbook/tree/master/Chapter02/oauth2provider.