Codebase list ruby-omniauth-facebook / upstream/5.0.0+git20191017.2de8e13 example / config.ru
upstream/5.0.0+git20191017.2de8e13

Tree @upstream/5.0.0+git20191017.2de8e13 (Download .tar.gz)

config.ru @upstream/5.0.0+git20191017.2de8e13raw · history · blame

require 'bundler/setup'
require 'omniauth-facebook'
require './app.rb'

use Rack::Session::Cookie, secret: 'abc123'

use OmniAuth::Builder do
  provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET']
end

run Sinatra::Application