Skip to content
Browse files

Move omniout-tmp from /tmp to .../tmp

  • Loading branch information...
1 parent bb135b8 commit fa09485097e90c0b28fe5c2b7588546f2329dd0b @iboard committed Jan 20, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 config/initializers/omniauth.rb
View
8 config/initializers/omniauth.rb
@@ -3,13 +3,15 @@
require 'openid/store/filesystem'
require File.join(Rails.root,'config/omniauth_settings')
Rails.application.config.middleware.use OmniAuth::Builder do
+
+ tmp_dir = File.expand_path('../../../tmp/openid.store', __FILE__)
+
if defined? OMNIAUTH_GOOGLE
- #provider :google_apps, OpenID::Store::Filesystem.new('/tmp/openid.store')
- provider :google_apps, OpenID::Store::Filesystem.new('/tmp/openid.store'), :domain => 'gmail.com'
+ provider :google_apps, OpenID::Store::Filesystem.new(tmp_dir), :domain => 'gmail.com'
end
if defined? OMNIAUTH_OPENID
- provider :open_id, OpenID::Store::Filesystem.new(Rails.root+'/tmp/openid.store')
+ provider :open_id, OpenID::Store::Filesystem.new(tmp_dir)
end
provider( :twitter, OMNIAUTH_TWITTER_KEY, OMNIAUTH_TWITTER_SECRET, {:client_options => {:ssl => {:ca_path => OMNIAUTH_CAPATH}}} ) if defined?(OMNIAUTH_TWITTER_KEY)
provider( :facebook, OMNIAUTH_FACEBOOK_KEY, OMNIAUTH_FACEBOOK_SECRET) if defined?(OMNIAUTH_FACEBOOK_KEY)

0 comments on commit fa09485

Please sign in to comment.
Something went wrong with that request. Please try again.