Created
July 2, 2012 21:24
-
-
Save gbelote/3035801 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb | |
index 1562f4b..8e2221c 100644 | |
--- a/config/initializers/omniauth.rb | |
+++ b/config/initializers/omniauth.rb | |
@@ -20,6 +20,12 @@ configatron.facebook.secret_key = fb_keys[:secret_key] | |
Rails.application.config.facebook = configatron.facebook | |
FacebookDialog.api_key = Rails.application.config.facebook.api_key | |
+if Rails.env.development? | |
+ # deal with cert issues | |
+ # http://stackoverflow.com/questions/4528101/ssl-connect-returned-1-errno-0-state-sslv3-read-server-certificate-b-certificat | |
+ OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE | |
+end | |
+ | |
OA_SETUP_PROC = lambda do |env| | |
request = Rack::Request.new(env) | |
scope = request.params['scope'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment