2013-08-25 21:04:16 -04:00
|
|
|
require "openssl"
|
|
|
|
require "openid_redis_store"
|
|
|
|
|
|
|
|
# if you need to test this and are having ssl issues see:
|
|
|
|
# http://stackoverflow.com/questions/6756460/openssl-error-using-omniauth-specified-ssl-path-but-didnt-work
|
2016-03-29 18:08:55 -04:00
|
|
|
# OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE if Rails.env.development?
|
2013-08-25 21:04:16 -04:00
|
|
|
|
|
|
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
|
|
Discourse.authenticators.each do |authenticator|
|
|
|
|
authenticator.register_middleware(self)
|
|
|
|
end
|
|
|
|
end
|
2016-03-29 18:08:55 -04:00
|
|
|
|
2016-03-19 08:16:11 -04:00
|
|
|
OmniAuth.config.logger = Rails.logger
|