Skip to content

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

Notifications You must be signed in to change notification settings

pjagielski/grails-oauth-scribe-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

ProviderWhere to register application
Google+https://code.google.com/apis/console
Facebookhttps://developers.facebook.com/apps
Twitterhttps://dev.twitter.com/apps/new
GitHubhttps://github.com/settings/applications/new
Linkedinhttps://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!

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published