Logging in with Google Accounts
You have a new requirement for your football application: your users want to log in to your application using their Gmail accounts.
To implement this scenario, you will configure your Authorization Server as an OAuth2 client, with Google Accounts being their IdP. You will learn how to create an OAuth2 Client ID in Google Cloud and integrate it into your application.
Getting ready
For this recipe, you will reuse the Spring Authorization Server you created in the Setting up Spring Authorization Server and Protecting a RESTful API using OAuth2 with different scopes recipes, as well as the web application you created in the Configuring an MVC application with OpenID authentication recipe. The MVC application stores sessions in Redis. You can run a Redis server in Docker, as explained in the Configuring an MVC application with OpenID authentication recipe.
I’ve prepared a working version of the required recipes in case you haven’...