forked from External/greenlight
GRN2-180: First stages of refactoring code for v2.4 (#748)
* Email rescues and authenticator concern * Application controller and helper clean up * Moved controller code out of helpers * More helper and email clean up * Cleaned up remaining helpers and create omniauth_options * Controller code clean up * restructured views structure * Restructured role code * Restructured profile and code clean up * Master merge * Added bbb server concern to deal with bbb calls * Bug fixes and changes after changes * rspec * More rubocop fixes
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'office365'
|
||||
require 'omniauth_options'
|
||||
|
||||
include OmniauthOptions
|
||||
|
||||
# List of supported Omniauth providers.
|
||||
Rails.application.config.providers = []
|
||||
@ -16,7 +19,7 @@ Rails.application.config.omniauth_office365 = ENV['OFFICE365_KEY'].present? &&
|
||||
ENV['OFFICE365_SECRET'].present?
|
||||
|
||||
SETUP_PROC = lambda do |env|
|
||||
SessionsController.helpers.omniauth_options env
|
||||
OmniauthOptions.omniauth_options env
|
||||
end
|
||||
|
||||
OmniAuth.config.logger = Rails.logger
|
||||
|
Reference in New Issue
Block a user