]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/omniauth.rb
Fix rubocop warnings
[rails.git] / config / initializers / omniauth.rb
index dc5b28e66f55ef1b58cf3470c61e03e10d041add..7889fca815b8aab7387efecc792c91b19ef30489 100644 (file)
@@ -16,12 +16,12 @@ if Settings.key?(:memcache_servers)
 else
   require "openid/store/filesystem"
 
-  openid_store = OpenID::Store::Filesystem.new(Rails.root.join("tmp", "openids"))
+  openid_store = OpenID::Store::Filesystem.new(Rails.root.join("tmp/openids"))
 end
 
 openid_options = { :name => "openid", :store => openid_store }
 google_options = { :name => "google", :scope => "email", :access_type => "online" }
-facebook_options = { :name => "facebook", :scope => "email" }
+facebook_options = { :name => "facebook", :scope => "email", :client_options => { :site => "https://graph.facebook.com/v4.0", :authorize_url => "https://www.facebook.com/v4.0/dialog/oauth" } }
 windowslive_options = { :name => "windowslive", :scope => "wl.signin,wl.emails" }
 github_options = { :name => "github", :scope => "user:email" }
 wikipedia_options = { :name => "wikipedia", :client_options => { :site => "https://meta.wikimedia.org" } }