begin require 'sinatra' require 'omniauth' require 'openid/store/filesystem' require 'omniauth-twitter' rescue LoadError require 'rubygems' require 'sinatra' require 'omniauth' require 'openid/store/filesystem' require 'omniauth-twitter' end use Rack::Session::Cookie use OmniAuth::Builder do provider :open_id, OpenID::Store::Filesystem.new('/tmp') provider :twitter, 'consumerkey', 'consumersecret'