Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pjagielski/grails-oauth-scribe-example
Example Grails project showing integration with multiple OAuth providers using scribe-java
https://github.com/pjagielski/grails-oauth-scribe-example
Last synced: 2 days ago
JSON representation
Example Grails project showing integration with multiple OAuth providers using scribe-java
- Host: GitHub
- URL: https://github.com/pjagielski/grails-oauth-scribe-example
- Owner: pjagielski
- Created: 2012-12-31T17:01:52.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-05T14:41:39.000Z (over 12 years ago)
- Last Synced: 2024-04-16T11:11:21.602Z (7 months ago)
- Language: Groovy
- Size: 422 KB
- Stars: 0
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/fernandezpablo85/scribe-java) library.# Demo
This Grails project is deployed on CloudFoundry, you can see it in action on [here](http://grails-oauth-scribe-example.cloudfoundry.com)
# 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/newGitHubhttps://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](http://i.imgur.com/zhfBe.png)
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](http://grails.org/plugin/cloud-foundry/) should help.
Enjoy!