forked from External/greenlight
oauth update
This commit is contained in:
@ -1,5 +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'
|
||||
scope: ['profile', 'email'], access_type: 'online', name: 'google'
|
||||
end
|
||||
|
@ -5,7 +5,8 @@ Rails.application.routes.draw do
|
||||
resources :users, only: [:edit, :update]
|
||||
get '/users/logout', to: 'sessions#destroy', as: :user_logout
|
||||
|
||||
get '/auth/:provider/callback', to: 'sessions#create'
|
||||
match '/auth/:provider/callback', to: 'sessions#create', via: [:get, :post]
|
||||
get '/auth/failure', to: 'landing#auth_failure'
|
||||
|
||||
# There are two resources [meetings|rooms]
|
||||
# meetings offer a landing page for NON authenticated users to create and join session in BigBlueButton
|
||||
|
Reference in New Issue
Block a user