How do I set up Google Login with Grails Spring Security Core?

I am trying to set up authentication in my Grails application using Google+ login. Google rejected their OpenID and they no longer allow new applications to authenticate this way.

I tried using http://grails.org/plugin/spring-security-oauth2-provider .

Once I installed it, I don't know what to do to make it really authenticate. Can anyone fill in the blanks here? I have read the documentation https://adaptivecomputing.github.io/grails-spring-security-oauth2-provider/docs/guide/index.html , but it is mostly about configuration options and is not a practical guide.

If anyone has a sample project that works and I can see the source, or can point me to the correct reading material, that would be great.

Thanks in advance,

+3


source to share


2 answers


It turns out there are plugins out of the box that do this. They are simply not listed on the Spring Security Core page (unlike all other extensions).

Here are the links: Plugin:



Dependencies:

0


source


I had the same problem and spent quite a bit of time looking for a sample that works.

Seems like the fastest way to achieve this is using the Spring OAuth + Google Security Plugin for Spring OAuth Security Plugin



A sample project that actually works, here it uses grails 2.3.5, so use that version to run it if you want to avoid any grails version of the compatibility issue.

0


source







All Articles