require 'omniauth-oauth2' require 'roqua/omniauth/strategies/doorkeeper' OmniAuth.config.logger = Rails.logger Rails.application.config.middleware.use OmniAuth::Builder do provider :doorkeeper, ENV.fetch('CORE_OAUTH_CLIENT_ID'), ENV.fetch('CORE_OAUTH_CLIENT_SECRET'), client_options: {site: ENV.fetch('CORE_SITE')}, authorize_params: {organization_id: ENV['CORE_ORGANIZATION']} end