omniauth

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

instagram api - cryptic response; not sure if working and unable to test omniauth with this

萝らか妹 提交于 2019-12-06 07:11:34
I am working on an rails app that has as the requirement logging in with omniuth to instagram. This would be my first time using instagrams OAuth endpoint and it is unclear whether it is working (and not clear to project manager either). I'm using their cURL implementation with the following (will reset it in future) but getting "No matching code found" error which would seem to be the logical first setp. curl \-F 'client_id=4658fa17d45244c88dd13c73949a57d7' \ -F 'client_secret=ae6cfe5d13544eada4dece2ec40ac5dc' \ -F 'grant_type=authorization_code' \ -F 'redirect_uri= http://seek-style

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

what is the omniauth & email-password registration best practice?

萝らか妹 提交于 2019-12-06 05:54:25
问题 What is the best practice for combining Facebook login (let's say I'll use Omniauth gem) and email+password login? I saw a few blogs, saw the Railscasts, I know everyone is using Devise gem with Omniauth. But I'm looking for some different perspective. subquestions: I'm considering creating email+password sign-up from scratch (not using any gem for this, lets keep it fast and light) so do you have any advice for this ? Or if you have particular gem in mind, please let it be fast. And do you

Omniauth + Google + Faraday + Behind the proxy = how setup proxy?

社会主义新天地 提交于 2019-12-06 05:28:01
My production server is Ubuntu 12 . I'm using Devise + OmniAuth to handle the Google authentication. But when Google returns a control to my application I get an error "Network is unreachable" . I assume it's because of server is behind the proxy. Here's error description: ------------------------------- Request: ------------------------------- * URL : http://efiling.uipv.org/users/auth/google_oauth2/callback?state=f4eaca9fbed2a77c0baac50cdbdccab7eee671179bb8fc43&code=4/YRcyYZzkrfNh8mEBbenxaxyx5EjN.4snirEA-93MXOl05ti8ZT3a9mXdIcgI * IP address: 213.160.144.239 * Parameters: {"state"=>

Configuring routes in devise when only using omniauth for authentication

萝らか妹 提交于 2019-12-06 02:54:06
问题 I have built an application which allows a user to authenticate against Active Directory using omniauth-ldap. If this is a new user, the successful authentication creates a user for them based on information returned from AD. If the user already exists, it just logs them in. Users do not register for the application, they just log in with AD credentials. And I never want the user to log in with database credentials. I can't figure out how to get rid of or change around some of the routes. For

omniauth behind proxy

不问归期 提交于 2019-12-06 02:36:34
I have a small app using omniauth and I'm testing it with LinkedIn provider (omniauth-linkedin). Unfortunately my test environment is behind a proxy. So I need to access linkedin through a proxy. How do I set the proxy address so the request to linkedin will succeed? It does not seem to be obeying the http_proxy settings. I figured it out, I think.. ue OmniAuth::Builder do provider :linkedin, "KEY", "SECRET", {:client_options => { :proxy =>\ ENV["HTTP_PROXY"] || ENV["http_proxy"] }} end 来源: https://stackoverflow.com/questions/10326416/omniauth-behind-proxy

Omniauth-facebook cancel button

≯℡__Kan透↙ 提交于 2019-12-06 02:16:16
问题 I've started integrating facebook authentication into my Rails 3.1 site, but ran into an issue when I click the cancel button on the fb auth dialog. When I click cancel, I get redirected back to my site at /auth/facebook/callback and then redirected to the /login page (I'm using Devise). What I want to do is redirect a canceled auth to a page that allows the user to create an account the standard way (email, username, password, etc). How can I override the redirect to the /login page? Btw, I

Allowing Curl API access to Rails web app with OmniAuth

◇◆丶佛笑我妖孽 提交于 2019-12-06 00:30:01
I'm building a Rails web app. I use OmniAuth for authentication. I would like to provide API access but only after the user has authenticated themselves with OAuth (via twitter mainly). Any suggestions of where to start? EDIT: add more context as requested Not trying to become an Oauth provider, but simply use the same login tokens. For example, you log into my app through twitter. You have both the token and secret OAuth tokens. I want to use those tokens to allow a user API access to the site. I have a similar question: Retrieving OAuth tokens (on server) from Faraday OAuth module (from

New LinkedIn permissions: accessing past positions and educations using rails LinkedIn gem

一笑奈何 提交于 2019-12-05 22:05:23
Linkedin recently updated their API, making it less restrictive in terms of what you can access in some cases but generally more explicit in terms of how you must access it. In particular, you must request specifically what data you want in the omniauth builder: Rails.application.config.middleware.use OmniAuth::Builder do provider :linkedin, "consumer_key", "consumer_secret", :scope => 'r_fullprofile r_emailaddress r_network', :fields => ["id", "email-address", "first-name", "last-name", "headline", "industry", "picture-url", "public-profile-url", "location", "connections"] end See: https:/