require 'rubygems' require 'bundler' Bundler.setup :default, :development, :example require 'sinatra' require 'omniauth' require 'omniauth-roomorama' use Rack::Session::Cookie use OmniAuth::Builder do provider :roomorama, "xhphaTy1kl0Yjqan1ZgHGw", "E9PVZNSWbluCqqSjy9wH8tUb6ttTkaHy6wV38724o" end get '/' do <<-HTML HTML end get '/auth/:provider/callback' do content_type 'text/plain' request.env['omniauth.auth'].to_hash.inspect end get '/auth/failure' do content_type 'text/plain' params[:message] end