Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stujo/ruby-sinatra-google-oauth
https://github.com/stujo/ruby-sinatra-google-oauth
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stujo/ruby-sinatra-google-oauth
- Owner: stujo
- Created: 2015-02-17T06:09:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-18T19:21:49.000Z (over 9 years ago)
- Last Synced: 2024-02-12T02:06:44.974Z (9 months ago)
- Language: Ruby
- Size: 160 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sinatra Google OAuth Example
============A sample application for Google OAuth, inspired by [queuetue's app skeleton](https://github.com/queuetue/sinatra-oauth2-google-auth-skeleton)
# Required Pre-work
* Set up a client application in [Google Developer Console](https://console.developers.google.com)
* Set up the app with a OAuth Client Credential
* Use ``http://localhost:9292/`` as the app url
* Use ``http://localhost:9292/auth/callback`` as the callback url
* Add the Google Plus API to the App
* Create a ``.env`` file in the proeject folder
```
GOOGLE_API_CLIENT="YOUR CLIENT ID HERE"
GOOGLE_API_SECRET="YOUR CLIENT SECRET HERE"
```# Start the App
``rackup``or
``rerun rackup``