How to implement Openid connect and Spring Security

zono picture zono · Aug 7, 2012 · Viewed 17.3k times · Source

I am beginner of authentication and authorization but I have to connect to a openid connect provider on my job. I know a little about how to use Spring Security.

First, I got UserInfo object thanks by following nice direction. https://oauthssodemo.appspot.com/step/1

And then I found a great implementation named "spring-security-oauth" below. I could run the app on tomcat and connect to facebook successfully.
https://github.com/SpringSource/spring-security-oauth

As next step, I want to connect google by using "spring-security-oauth" but I do not know how to do that completely. (To be honest, I do not know how differences openid connect and aouth2..)

give me a clue. Any help will be appreciated.

Answer

Romain F. picture Romain F. · Dec 17, 2014

here is a sample minimal project integrating Google Open Id Connect with Spring Security: https://github.com/fromi/spring-google-openidconnect The key point for me was to rely heavily on Spring OAuth2 to minimize the configuration required.