mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 23:03:00 +08:00
7 lines
227 B
Ruby
7 lines
227 B
Ruby
require 'omniauth-linkedin-oauth2'
|
|
|
|
if Rails.configuration.x.enable_user_registration
|
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
provider :linkedin, ENV['LINKEDIN_KEY'], ENV['LINKEDIN_SECRET']
|
|
end
|
|
end
|