Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 546 Bytes
APP_ENV = 'production'
require './app/bootstrap'
require './config/api_credentials'
require 'omniauth'
require 'omniauth-google-oauth2'
use Rack::Session::Cookie
use OmniAuth::Builder do
scope = 'https://www.googleapis.com/auth/userinfo.email '\
'https://www.googleapis.com/auth/userinfo.profile'
provider :google_oauth2,
DeckApp::GAPI_CLIENT_ID,
DeckApp::GAPI_CLIENT_SECRET,
{ :scope => scope,
:access => 'offline',
:approval_prompt => '' }
end
run DeckApp::App.new