Merge branch 'master' of github.com:blindsidenetworks/greenlight

This commit is contained in:
jfederico
2016-10-18 10:03:50 -04:00
17 changed files with 148 additions and 17 deletions

View File

@ -0,0 +1,5 @@
Rails.application.config.middleware.use OmniAuth::Builder do
provider :twitter, ENV['TWITTER_ID'], ENV['TWITTER_SECRET']
provider :google_oauth2, ENV['GOOGLE_OAUTH2_ID'], ENV['GOOGLE_OAUTH2_SECRET'],
scope: 'profile', access_type: 'online', name: 'google'
end

View File

@ -3,6 +3,8 @@ Rails.application.routes.draw do
get 'bbb/close'
get 'meeting(/:id)', to: 'landing#index'
get '/auth/:provider/callback', to: 'sessions#create'
get '/logout', to: 'sessions#destroy'
root to: 'landing#index'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html