mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
15 lines
No EOL
575 B
Ruby
15 lines
No EOL
575 B
Ruby
require 'openid/store/filesystem'
|
|
require 'openssl'
|
|
module OpenSSL
|
|
module SSL
|
|
remove_const :VERIFY_PEER
|
|
end
|
|
end
|
|
|
|
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
|
|
|
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
provider :open_id, :store => OpenID::Store::Filesystem.new('/tmp'), :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id', :require => 'omniauth-openid'
|
|
provider :open_id, :store => OpenID::Store::Filesystem.new('/tmp'), :name => 'yahoo', :identifier => 'https://me.yahoo.com', :require => 'omniauth-openid'
|
|
|
|
end |