omniauth

omniauth with facebook not working on production

白昼怎懂夜的黑 提交于 2019-11-29 02:38:40
i'm working with omniauth in my rails app, i have sign with facebook and twitter button, when i'm putting in facebook in the site url filed localhost:3000, all is working, but when i'm uploading the site to heroku and changing in the site url to sitename.heroku.com, the twiiter login button working but the facebook button don't working... You probably need to give us more information (What do you mean the facebook button isn't working? Are you getting an error message? If so, what? What are your logs saying?) BUT, there's a good chance this is your problem: there is a known issue using

No 'Access-Control-Allow-Origin' header is present on the requested resource

℡╲_俬逩灬. 提交于 2019-11-29 00:59:11
问题 I am using omniauth-facebook with AngularJS and CORS is not working correctly . My omniauth.rb is Rails.application.config.middleware.use OmniAuth::Builder do provider :facebook,"xxxxx", "xxxxx", :scope => 'email,user_birthday,read_stream', :display => 'popup' end Everything works if i use it as rails app and request. But when i try to call 'http:\localhost:3000\users\auth\facebook" via Angular JS $http.get('/users/auth/facebook').success(function(data, status, headers, config) { console.log(

Oauth2 Instagram API “redirect URI does not match registered redirect URI”

删除回忆录丶 提交于 2019-11-28 23:20:51
I am working on a Rails application which is in development mode and it can register with omniauth. The host is http://localhost:3000/ I'm using the gems: gem 'omniauth' gem 'omniauth-foursquare' gem 'omniauth-instagram' When I register through omniauth with Foursquare there's no problem at all. All the settings are right and my redirect_uri in the Foursquare developer settings equals to the host (localhost:3000) However, if I fill in the exact same redirect_uri (localhost:3000) in the Instagram client manager*. Instagram gives me this: { "code": 400, "error_type": "OAuthException", "error

Rails 3 - Devise With OmniAuth - Redirect after signing in goes to /users/sign_in

不问归期 提交于 2019-11-28 21:32:27
问题 Im using devise with omniauth for signing in users with facebook. I want them to be redirected after signing in to the page they were on after before signing in. I've used the def after_sign_in_path_for(resource_or_scope) store_location = session[:return_to] clear_stored_location (store_location.nil?) ? "/" : store_location.to_s end in my application controller, and made a sessions_helper with this code def deny_access store_location redirect_to new_user_session_path end def anyone_signed_in?

Editing Users With Devise and Omniauth

这一生的挚爱 提交于 2019-11-28 18:26:17
I'm working through the Railscast on implementing Devise and OmniAuth (along with the Devise documentation ) -- currently, I've got a site going where visitors can sign up using their facebook accounts or by filling out a form. I'm running into trouble when users that sign up via OmniAuth try to edit their profiles, though. Devise looks for the user's current password when they submit changes to their profiles, but those that logged in with facebook don't know their passwords (they're set automatically in the user model): def self.find_for_facebook_oauth(auth, signed_in_resource=nil) user =

OmniAuth + Pulling Tweets, FB Places, etc

北城余情 提交于 2019-11-28 17:20:33
I'm using OmniAuth + Devise to allow users to register using Facebook/Twitter/Gowalla/etc attached to normal user accounts. Now when a user logs in using any of these, or their account, all their social networks are attached in a authentications table. I need to be able to pull content from any of these providers, such as their tweets or their Facebook Places checkings, etc. I understand that I will need to use a different gem, plugin, whatever to do this but getting the config I need to work with those gems (and make requests) is confusing to me. I need to be able to access the provider

Passing parameters through OmniAuth

☆樱花仙子☆ 提交于 2019-11-28 15:57:15
问题 I need to pass some parameters to callback action. Judging from the source code, OmniAuth should add query string to callback URL but strangely it does not. When I open /auth/facebook?from=partner ...and get redirected to Facebook, return_url is just /auth/facebook/callback ...without any parameters. 回答1: After struggling with all the above answers, I figured out what to do regarding Facebook , which by default does not display the params in request.env["omniauth.auth"] . So -- If you are

Devise Omniauth and Iphone/Android App

喜夏-厌秋 提交于 2019-11-28 15:29:07
I've set up user auth for my rails App with Devise and Omniauth. Now I'm wondering where I should start to use the same auth for an Android and iPhone app I want to create. Should I use a mobile version of my /auth/facebook or should I directly send a request from the app ? This is a quite general question, but I've found nowhere to look at. EDIT : I've just added Token Auth to the app to use with the RESTful api, I'm just missing the Omniauth/Facebook-token part. rnaud Alright, so I'm answering my own question. If you use the Facebook SDK , the SSO works quite good on the device, BUT, the

WEBrick: RequestURITooLarge: should I update or use a different server?

情到浓时终转凉″ 提交于 2019-11-28 12:17:52
I currently have: $ rails s => Booting WEBrick => Rails 3.0.9 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2011-11-30 13:18:00] INFO WEBrick 1.3.1 [2011-11-30 13:18:00] INFO ruby 1.9.2 (2011-02-18) [x86_64-darwin10.8.0] [2011-11-30 13:18:00] INFO WEBrick::HTTPServer#start: pid=4204 port=3000 The problem I'm having is I'm using openID for auth and getting the following error: [2011-11-30 13:18:19] ERROR WEBrick::HTTPStatus::RequestURITooLarge In the browser: Request-URI Too Large WEBrick::HTTPStatus::RequestURITooLarge

Devise, Omniauth and Facebook integration session error

大城市里の小女人 提交于 2019-11-28 08:49:42
I am new to Rails and am installing my first app that integrates Facebook sign in / sign up. I followed Ryan Bates' RailsCast videos that were posted here: https://stackoverflow.com/a/4954443/1302333 . I followed his tutorial for integrating Twitter and that works, but I'm having issues with Facebook. When I visit http://localhost:3000/auth/facebook I receive this error: NoMethodError in AuthenticationsController#create undefined method `serialize_into_session' for Symbol:Class Here is the full trace: devise (2.1.0) lib/devise/rails/warden_compat.rb:19:in `serialize' warden (1.1.1) lib/warden