omniauth

OpenSSL::SSL::SSLError on Heroku [duplicate]

不想你离开。 提交于 2019-11-26 19:57:03
This question already has an answer here: SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/ 23 answers I'm trying to authenticate a user via Facebook or Twitter, get them to fill out their information, and then click save (thus creating a user record). I'm getting an OpenSSL error on that final step -- after clicking save. This happens at the Devise RegistrationsController#create method. So I'm getting this error in my Rails application, hosted on Heroku: 2012-07-28T18:25:13+00:00 app[web.1]: OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3

Turn omniauth facebook login into a popup

a 夏天 提交于 2019-11-26 19:18:58
I'm using the omniauth gem with rails and it works great with loging in users, but everytime it takes you to the fb login page then redirects you back. I was wondering if there is a way to do what most pages do and show the fb login in a popup and then reload the parent div once that is complete. Any ideas? Thanks! Sure, you can easily. In your view: =link_to "Log in with Facebook", omniauth_authorize_path(:user, :facebook), :class => "popup", :"data-width" => 600, :"data-height" => 400 In your application.js: function popupCenter(url, width, height, name) { var left = (screen.width/2)-(width

OmniAuth Strategies Facebook NoAuthorizationCodeError (must pass either a `code` parameter or a signed request (via `signed_request` parameter):

早过忘川 提交于 2019-11-26 18:22:41
问题 I am getting a error: OmniAuth::Strategies::Facebook::NoAuthorizationCodeError (must pass either a `code` parameter or a signed request (via `signed_request` parameter or a `fbsr_XXX` cookie)): Its not coming all the time. Its coming once in a while, notified by airbrake. There are lot of links for this on google search but not able to find out a proper solution.. Anyone? omniauth.rb under initializers directory: OmniAuth.config.logger = Rails.logger Rails.application.config.middleware.use

Refresh token using Omniauth-oauth2 in Rails application

泪湿孤枕 提交于 2019-11-26 18:03:53
问题 I am using omniauth-oauth2 in rails to authenticate to a site which supports oauth2. After doing the oauth dance, the site gives me the following, which I then persist into the database: Access Token Expires_AT (ticks) Refresh token Is there an omniauth method to refresh the token automatically after it expires or should I write custom code which to do the same? If custom code is to be written, is a helper the right place to write the logic? 回答1: Omniauth doesn't offer this functionality out

OmniAuth & Facebook: certificate verify failed [duplicate]

我怕爱的太早我们不能终老 提交于 2019-11-26 17:05:12
This question already has an answer here: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed 37 answers 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 returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed I am working on localhost. I didn't set up any

How to get rid of OpenSSL::SSL::SSLError

萝らか妹 提交于 2019-11-26 15:47:54
问题 I am trying to authenticate users with Facebook using OmniAuth. Initially, it was working, but along the way it just stopped working and started to give me this error message: OpenSSL::SSL::SSLError SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed The same code works well for Twitter and I can't seem to understand why it doesn't work for Facebook. I have looked online for help, but I haven't been successful. This is the link to the website I am

Omniauth: callback not firing, returns failure with “invalid credentials”

Deadly 提交于 2019-11-26 14:53:16
问题 The facebook authentication in my Rails application, implemented with the Omniauth gem has stopped working recently. The problem is that the controller action, that should be used by the callback is not getting fired, and the process immediately skips to failure with "invalid credentials" message. log: Started GET "/auth/facebook" for ::ffff:127.0.0.1 at 2017-03-29 11:12:29 +0200 Started GET "/auth/facebook/callback?code=<<code>>&state=<<state>" for ::ffff:127.0.0.1 at 2017-03-29 11:12:30

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 Error - Faraday::Error::ConnectionFailed

試著忘記壹切 提交于 2019-11-26 08:48:03
问题 (FYI: I\'m following the Twitter Omniauth from railscast #241. I used Twitter successfully, now going onto Facebook) As soon as I logged into Facebook using Omniauth, I get this error: Faraday::Error::ConnectionFailed SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed What does this mean? This is my code Rails.application.config.middleware.use OmniAuth::Builder do provider :facebook, \'<key from fb>\', \'<another key from fb>\' end There\'s

OpenSSL::SSL::SSLError on Heroku [duplicate]

大憨熊 提交于 2019-11-26 07:28:59
问题 This question already has an answer here: SSL Error When installing rubygems, Unable to pull data from 'https://rubygems.org/ 24 answers I\'m trying to authenticate a user via Facebook or Twitter, get them to fill out their information, and then click save (thus creating a user record). I\'m getting an OpenSSL error on that final step -- after clicking save. This happens at the Devise RegistrationsController#create method. So I\'m getting this error in my Rails application, hosted on Heroku: