Setting up Google OAuth2 with Java

For all of you who are trying to figure out how to integrate with Google’s single sign-on functionality (like I’ve done for my own startup at, this article I published on might be for you. I’ve taken the liberty of condensing all of the actual logic required to perform OAuth Google login, and provided it as a class and a JSP. In order to follow along better, I suggest cloning the example GitHub repository, and deploying to the application to your server of choice.

please find this article here