Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Example Grails project showing integration with multiple OAuth providers using scribe-java

branch: master

demo

latest commit f26ef85835
Piotr Jagielski authored July 05, 2012
Octocat-spinner-32 .settings initial commit July 04, 2012
Octocat-spinner-32 grails-app properties July 04, 2012
Octocat-spinner-32 lib initial commit July 04, 2012
Octocat-spinner-32 src initial commit July 04, 2012
Octocat-spinner-32 web-app initial commit July 04, 2012
Octocat-spinner-32 README.md demo July 05, 2012
Octocat-spinner-32 application.properties initial commit July 04, 2012
README.md

grails-oauth-scribe-example

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.

Demo

This Grails project is deployed on CloudFoundry, you can see it in action on here

Installation

Before starting you have to register your application to various OAuth providers, see table below:

Provider Where to register application
Google+ https://code.google.com/apis/console
Facebook https://developers.facebook.com/apps
Twitter https://dev.twitter.com/apps/new
GitHub https://github.com/settings/applications/new
Linkedin https://www.linkedin.com/secure/developer?newapp=

Then, rename oauth.properties.template from grails-app/conf to oauth.properties and copy the API and secret keys to corresponding property of the file. Example of Google below:

google

And start application: grails run-app

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.

Enjoy!

Something went wrong with that request. Please try again.