lib/warden-googleapps/strategy.rb in warden-googleapps-0.1.3 vs lib/warden-googleapps/strategy.rb in warden-googleapps-0.1.4
- old
+ new
@@ -43,10 +43,10 @@
def consumer
@consumer ||= ::OpenID::Consumer.new(request.session, open_id_store)
end
def open_id_store
- ::OpenID::Store::Filesystem.new("#{Dir.tmpdir}/tmp/openid")
+ env['warden'].config[:open_id_store] || ::OpenID::Store::Filesystem.new("#{Dir.tmpdir}/tmp/openid")
end
def google_apps_domain
env['warden'].config[:google_apps_domain]
end