我正在使用Authlogic-Connect进行第三方登录.运行适当的迁移后,Twitter/Google/yahoo登录似乎工作正常但Facebook登录引发异常:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Run Code Online (Sandbox Code Playgroud)
开发日志显示
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed):
app/controllers/users_controller.rb:37:in `update'
Run Code Online (Sandbox Code Playgroud)
请建议..
我已经按照Railscast#235尝试建立一个最小的Facebook身份验证.
我首先建立了一个Twitter身份验证,就像Ryan本人所做的那样.这完美无瑕.
然后我继续添加Facebook登录.但是,在授权应用程序后,重定向/auth/facebook/callback
失败并显示:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Run Code Online (Sandbox Code Playgroud)
我正在使用localhost.我没有在应用程序中设置任何SSL.我究竟做错了什么?
我收到了这个错误,但显然我已经联系了!我15小时前和Heroku订了一张票,但没有得到回应.
C:\>heroku config
Enter your Heroku credentials.
Email: myemail@mydomain
Password (typing will be hidden):
! Unable to connect to Heroku API, please check internet connectivity and try again.
$ heroku status
! Unable to connect to Heroku API, please check internet connectivity and try again.
Run Code Online (Sandbox Code Playgroud)
我甚至重新安装了Heroku客户端.当这个问题通过Git发生时我甚至推到了Heroku.
我正在按照Ryan Bate的指示使用Omniauth建立第三方认证,除了我正在尝试使用Facebook而不是Twitter,他在RailsCast 235中设置了它.
安装omniauth-facebook gem后,设置初始化程序
Rails.application.config.middleware.use OmniAuth::Builder do
provider :facebook, 'APP_ID', 'APP_SECRET'
end
Run Code Online (Sandbox Code Playgroud)
我应该可以去localhost:3000/auth/facebook并获得Facebook登录(尽管它最终不会起作用,因为我们还没有设置回调网址)但是,当我去那个网址时,我收到这个错误
{
"error": {
"message": "Error validating application.",
"type": "OAuthException",
"code": 101
}
}
Run Code Online (Sandbox Code Playgroud)
并且url实际上变为
https://graph.facebook.com/oauth/authorize?response_type=code&client_id=APP_ID&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Ffacebook%2Fcallback&scope=email%2Coffline_access
Run Code Online (Sandbox Code Playgroud)
在我的应用程序上,我已经设置了Devise并按照Devise wiki上的说明整合了Facebook授权https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview
谁能告诉我问题可能是什么?
对错误消息进行谷歌搜索显示,最近几周有不少人遇到过这个问题,但却找不到任何有解决方案的人