OAuth 2.0 protocol and OpenID Connect are both stable specifications that are evolving through additional specifications. On the other hand, frameworks that implement both technologies are always changing quickly with regard to new requirements, famous paradigms, new versions of languages, and even to improve maintainability.
That's our case with Spring Security and Spring Security OAuth2. At the time of writing this, all the projects related to OAuth 2.0, OpenID Connect, and social connectivity are being condensed within Spring Security 5. Spring Security 5 brings in lots of advantages, improving the way we add security to our applications. But at the moment, we can just count with client implementations for OAuth-related technologies. Through this recipe, let's explore how to authenticate users with Google OpenID Connect.