railscasts

Setting Environment Variables in Rails 3 (Devise + Omniauth)

安稳与你 提交于 2019-11-26 10:09:08
问题 I\'ve been trying to figure out how Ryan Bates, in his Facebook Authentication screencast, is setting the following \"FACEBOOK_APP_ID\" and \"FACEBOOK_SECRET\" environment variables. provider :facebook, ENV[\'FACEBOOK_APP_ID\'], ENV[\'FACEBOOK_SECRET\'] There are similar-ish questions around, but no answers that I\'ve been able to get to work on Rails 3.2.1. UPDATE: As of May 2013, my preferred way to handle ENV variables is via the Figaro gem 回答1: You could take a look at the comments: You

OmniAuth & Facebook: certificate verify failed [duplicate]

喜欢而已 提交于 2019-11-26 06:04:43
问题 This question already has answers here : SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (37 answers) Closed 4 years ago . I\'ve followed Railscast #235 to try and set up a minimal Facebook authentication. I\'ve first set up a Twitter authentication, as done by Ryan himself. That worked flawlessly. I then moved on to adding a Facebook login. However, after authorizing the app the redirect to /auth/facebook/callback fails with: SSL_connect