对于我的Rails 2.3.11应用程序,我在我的开发环境--Ubuntu框中使用基于Omniauth的facebook身份验证。这非常有效。然而在生产中它只是坐在那里。
最终我认为它因超时而失败。我相信其未能在处理来自Facebook回调:=“> HTTP://ziptrips.in:8002 / AUTH /实/回调代码= AQA7cFWwM4Yrvm3dlREWv8-sdassasadas-9xkDVptqLfsl1Bevb9w8dbbcl9sgCmYugkWycgbFjqxWZozuiLAOzAJ1WxAde8T2DpRpJmYBXSNT4NtgGOup2O2XDmiYlEzAGSePEMeMjqvRX2oUCqHw# =
由于我的是Rails 2.3.11应用程序,这是我的omniauth.rb在初始化程序中的样子: ActionController :: Dispatcher.middleware.use OmniAuth :: Builder做#if你正在使用rails 2.3.x. 提供者:facebook,'1234123343','6aec22dssadsaetcetc',: client_options => {:ssl => {:ca_path => “/ etc / ssl / certs”}} ,: scope => '电子邮件,offline_access,read_stream' 端
以下是相关信息: Omniauth Gem:1.0.2 omniauth-facebook gem:1.2.0 主持EC2
您可以在此处尝试:http://ziptrips.in/auth/facebook 我已经确定facebook的设置是正确的。
非常感谢任何帮助/指示。
谢谢, NAVNEET