Example Grails project showing integration with multiple OAuth providers using scribe-java. Currently supports Google+, Facebook, Twiiter, GitHub and LinkedIn. It uses underneath scribe-java library.
This Grails project is deployed on CloudFoundry, you can see it in action on here
Before starting you have to register your application to various OAuth providers, see table below:
|Provider||Where to register application|
oauth.properties and copy the API and secret keys to corresponding property of the file.
Example of Google below:
And start application:
You should now be able to login with your social accounts. Beware of callback URLs - not all providers support application hosted on localhost... But deploying on cloudfoundry should help.