Codebase list ruby-omniauth-facebook / upstream/9.0.0+git20211029.1.e1e572d example / config.ru
upstream/9.0.0+git20211029.1.e1e572d

Tree @upstream/9.0.0+git20211029.1.e1e572d (Download .tar.gz)

config.ru @upstream/9.0.0+git20211029.1.e1e572draw · 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