omniauth-facebook

CORS Issue with Rails 4, omniauth-facebook, rack-cors, Heroku

雨燕双飞 提交于 2019-12-10 17:56:17
问题 Summary: I have a CORS problem. I'm trying to authenticate with Facebook from a React app with a Rails API. My app runs on localhost:8080 and my api runs on Heroku. I'm able to login to facebook and create a session on callback, but the cookie set by facebook isn't picked up by omniauth. I use omniauth-facebook client-side authentication. I think that the problem is somewhere in my configuration of rack-cors. It works when I run my api on localhost:3000. Earlier, I received the error csrf

Devise Omniauth-Facebook rememberable

蹲街弑〆低调 提交于 2019-12-08 07:10:55
问题 Problem I have Devise Omniauth-Facebook authentication. The log in with facebook works, but the Session is lost when the user goes to localhost:3000 . I have the following GEMs : Devise 4.2.0 Rails 5 omniauth 1.4.0 omniauth-facebook 4.0.0 omniauth-oauth2 1.4.0 Description The Session works correctly for users not authenticated with Omniauth-Facebook, This is my devise.rb omniauth-facebook settings : config.omniauth :facebook, "APP_ID", "APP_SECRET", callback_url: "http://127.0.0.1:3000/users

Could not find devise mapping for path “/users/”. How come?

不羁岁月 提交于 2019-12-06 07:17:23
I am working with devise/omniauth right now. After signing up through facebook/twitter, I want to redirect to a page called "verify-email" where they can verify that their email address is correct. I am just trying to get the localhost:3000/users/verify-email page to work right now. I go to that url and I get this error message: Could not find devise mapping for path "/users/update_email". This may happen for two reasons: 1) You forgot to wrap your route inside the scope block. For example: devise_scope :user do get "/some/route" => "some_devise_controller" end 2) You are testing a Devise

Omniauth-facebook login not working

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 06:39:31
问题 When I try to login in my Rails app using omniauth-facebook, I'm getting the following error. This is when testing on localhost:3000: Insecure Login Blocked: You can't get an access token or log in to this app from an insecure page. Try re-loading the page as https:// I saw this other recent post on SO, but Facebook doesn't seem to be allowing me to change the "Enforce HTTPS for Web OAuth Login" settings in the developer console for this app that I created today. I can change that setting for

Omniauth-facebook login not working

社会主义新天地 提交于 2019-12-04 13:41:21
When I try to login in my Rails app using omniauth-facebook, I'm getting the following error. This is when testing on localhost:3000: Insecure Login Blocked: You can't get an access token or log in to this app from an insecure page. Try re-loading the page as https:// I saw this other recent post on SO , but Facebook doesn't seem to be allowing me to change the "Enforce HTTPS for Web OAuth Login" settings in the developer console for this app that I created today. I can change that setting for old apps. Any ideas on how to fix this or get around it? I'll use HTTPS in production, but just want

omniauth-facebook cannnot get email address

为君一笑 提交于 2019-12-03 07:29:11
I created new Rails App and install Devise and omniauth-facebook gem. And setting my Facebook App, as testing environment. So, I logged in via facebook and signed up my new Rails app, but request.env did not contain email address.info. this is returned request.env['omniauth.auth'] { "provider" => "facebook", "uid" => "xxxxxxxxxxxx", "info" => { "name" => "xxxxxxx", "image" => "http://graph.facebook.com/xxx/picture" }, "credentials" => { "token" => "tokenstring", "expires_at" => xxxxxxxxx, "expires" => true }, "extra" => { "raw_info" => { "name" => "xxx xxxx", "id" => "xxxxxxxxx" } } } it racks

Omniauth Facebook redirects to registration screen instead of creating user

落爺英雄遲暮 提交于 2019-12-01 21:01:42
Following the gem's tutorial exactly I still seem to be running into some issues. I first click the link to sign up via Facebook and get redirected to Facebook. I click okay and get brought back to my registration page. No new user is created. If I try to click the register link again it just refreshes the page with this in the address bar http://localhost:3000/register#_=_ . What am I doing wrong? User Model devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :omniauthable, omniauth_providers: [:facebook] def self.from_omniauth(auth) where

omniauth for rails and ios authentication

♀尐吖头ヾ 提交于 2019-12-01 03:39:48
I have a rails app that handles the api for an iOS client. I use devise, omniauth-facebook for rails. for the iOS client I'm using Accounts and Social framework for the facebook authentication. I've grabbed the oauth token and passing it to rails via the omniauth callback to authenticate but I was getting this error. Can someone please guide me on what I'm doing wrong? below here is the log that I'm getting. Started POST "/users/auth/facebook/callback" for ::1 at 2015-01-12 10:59:22 +0800 I, [2015-01-12T10:59:22.928323 #99294] INFO -- omniauth: (facebook) Callback phase initiated. E, [2015-01

omniauth for rails and ios authentication

南楼画角 提交于 2019-12-01 00:47:46
问题 I have a rails app that handles the api for an iOS client. I use devise, omniauth-facebook for rails. for the iOS client I'm using Accounts and Social framework for the facebook authentication. I've grabbed the oauth token and passing it to rails via the omniauth callback to authenticate but I was getting this error. Can someone please guide me on what I'm doing wrong? below here is the log that I'm getting. Started POST "/users/auth/facebook/callback" for ::1 at 2015-01-12 10:59:22 +0800 I,

Facebook NoAuthorizationError after passing signed_parameters manually

吃可爱长大的小学妹 提交于 2019-11-28 07:57:20
问题 I've had a lot of issues trying to get the client-side login to work, so I'm going to take the liberty of referencing a ton of other questions here... none have resulted in an answer that has worked for me. CONTEXT Server-side login works fine Client-side login using JS SDK works fine on Safari* (have not tested in Firefox or IE or mobile non-Chrome), but not in Chrome , which is what this question is about (and majority of my users use Chrome so it's super important) Gem versions: ruby (2.1