Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 rake

Gemfile
-------
gem "sinatra_auth_gmail"
# vim:ft=ruby

Example config.ru
-----------------
require 'rubygems'
require 'bundler'

Bundler.setup
Bundler.require

class MyFirstGmailApp < Sinatra::Base
use Rack::Session::Cookie
register Sinatra::Auth::Gmail

get '/' do
authorize!
haml "%h2= 'Hello There, #{gmail_user.full_name}!'"
end
end

run MyFirstGmailApp

Executing
---------
% bundle install
% bundle exec rackup

Visiting
--------
% open http://localhost:9292