Execute the below command using Gradle from the project directory:
./gradlew bootRunAlternatively, if you're using Maven, execute the following command from the project directory:
./mvnw spring-boot:run- Launch the sample application and go to https://localhost:8443/oauth2/authorization/google. You will be redirected to the default login page, which displays a link for Google.
- Click on the Google link, and you are then redirected to Google for authentication.
- The OAuth Client retrieves your email address and basic profile information from the UserInfo Endpoint ( find out more here: https://openid.net/specs/openid-connect-core-1_0.html#UserInfo )and establishes an authenticated session.
- At this point, you should be able to complete a full login using Google OAuth 2 provider. The redirects that occur are as follows, first, we initiate the OAuth 2 provider login as shown in the following screenshot:

- After filling the logging details, the user is redirected to the JBCP Calendar application and automatically logged in using the provider display name:
