我关注了 Ryan Bates Omniauth Part1 railscats http://railscasts.com/episodes/235-omniauth-part-1。我将 twitter 和 Facebook 身份验证与他们的密码一起使用,当我尝试通过 Facebook (auth/facebook) 进行身份验证时,我收到此错误:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException"
}
}
当我尝试通过 twitter (auth/twitter) 进行身份验证时,我收到了 401 Unauthorized 响应。我不知道我该如何纠正它
谢谢我更正http://127.0.0.1:3000
了在 twitter URL 回调字段和 facebook 我的网站字段中的输入。但是现在当我尝试使用 facebook 进行身份验证时,我收到了这个错误:
OpenSSL::SSL::SSLError
SSL_connect 返回=1 errno=0 state=SSLv3 读取服务器证书B:证书验证失败
我该如何解决?我解决了放入OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
development.rb