Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atmos/sinatra_auth_gmail
A sinatra extension that provides authentication for GMail authentication
https://github.com/atmos/sinatra_auth_gmail
Last synced: 3 months ago
JSON representation
A sinatra extension that provides authentication for GMail authentication
- Host: GitHub
- URL: https://github.com/atmos/sinatra_auth_gmail
- Owner: atmos
- License: mit
- Created: 2010-02-10T07:09:51.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-04-09T18:49:38.000Z (over 14 years ago)
- Last Synced: 2024-09-21T14:08:53.212Z (4 months ago)
- Language: Ruby
- Homepage: http://github.com/atmos/sinatra_auth_gmail
- Size: 87.9 KB
- Stars: 12
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
sinatra_auth_gmail
==================A sinatra app that lets you authenticate users via gmail.
Developing
==========
% gem install bundler
% bundle install
% bundle exec rakeGemfile
-------
gem "sinatra_auth_gmail"
# vim:ft=rubyExample config.ru
-----------------
require 'rubygems'
require 'bundler'Bundler.setup
Bundler.requireclass MyFirstGmailApp < Sinatra::Base
use Rack::Session::Cookie
register Sinatra::Auth::Gmailget '/' do
authorize!
haml "%h2= 'Hello There, #{gmail_user.full_name}!'"
end
endrun MyFirstGmailApp
Executing
---------
% bundle install
% bundle exec rackupVisiting
--------
% open http://localhost:9292