lib/exvo_auth/config.rb in exvo-auth-0.14.0 vs lib/exvo_auth/config.rb in exvo-auth-0.14.1
- old
+ new
@@ -1,8 +1,8 @@
module ExvoAuth::Config
def self.debug
- @@debug ||= ENV['AUTH_DEBUG'] || false
+ @@debug ||= (ENV['AUTH_DEBUG'] == 'true') || false
end
def self.debug=(debug)
@@debug = debug
end
@@ -47,10 +47,10 @@
def self.client_secret=(client_secret)
@@client_secret = client_secret
end
def self.require_ssl
- @@require_ssl ||= ENV['AUTH_REQUIRE_SSL'] || default_opts[env.to_sym][:require_ssl]
+ @@require_ssl ||= (ENV['AUTH_REQUIRE_SSL'] == 'true') || default_opts[env.to_sym][:require_ssl]
end
def self.require_ssl=(require_ssl)
@@require_ssl = require_ssl
end