No commit activity in last 3 years
No release in over 3 years
A sinatra extension that provides authentication for GMail authentication
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.2.0
>= 1.0.0
~> 1.0
 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