require 'omniauth-oauth2' require 'roqua/omniauth/strategies/doorkeeper' OmniAuth.config.logger = Rails.logger Rails.application.config.middleware.use OmniAuth::Builder do case Rails.env when 'development', 'test' provider :doorkeeper, 'b30f46f3e991d87f52f54365dda6b147d74039fd9c0336490ab41a7254702651', '49b42787e6fcf9d42878c62c77817a92251abf48923d8c269c9c088e66066fd2', client_options: {site: 'http://core.dev'} else provider :doorkeeper, ENV['CORE_OAUTH_CLIENT_ID'], ENV['CORE_OAUTH_CLIENT_SECRET'], client_options: {site: ENV['CORE_OAUTH_URL']} end end