omniauth

Facebook app - login through omniauth - OAuthException 191

限于喜欢 提交于 2019-12-19 05:12:19
问题 I am facing with the problem: "error": { "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.", "type": "OAuthException", "code": 191 } I set up in my app the needed keys and tokens, in the Facebook's dev center I set up Site URL: to http://127.0.0.1:3001 and I am getting the error above. Also I tried to set up App Namespace: to http://127.0.0.1:3001 , but I am getting error about bad address format... When I tried to fill out he App Domain: and set

Facebook app - login through omniauth - OAuthException 191

不问归期 提交于 2019-12-19 05:12:06
问题 I am facing with the problem: "error": { "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.", "type": "OAuthException", "code": 191 } I set up in my app the needed keys and tokens, in the Facebook's dev center I set up Site URL: to http://127.0.0.1:3001 and I am getting the error above. Also I tried to set up App Namespace: to http://127.0.0.1:3001 , but I am getting error about bad address format... When I tried to fill out he App Domain: and set

How to implement Gmail IMAP with Omniauth

徘徊边缘 提交于 2019-12-19 03:58:27
问题 I've read through several desperate sources of information on connecting to Google's Gmail through XOAUTH: http://code.google.com/apis/gmail/oauth/protocol.html#imap And I'm trying the use the 'gmail' gem which implements IMAP: https://github.com/nu7hatch/gmail Finally, ominauth for handling the authentication: https://github.com/Yesware/omniauth-google How do I actually tie these codes together to make something usable? Please let me know of any real world implementations, here's some

Faraday timeout error with omniauth (custom strategy)/doorkeeper

梦想与她 提交于 2019-12-18 16:56:39
问题 I'm currently following along with this railscast and for my specific situation am running into a Faraday timeout error on the callback from omniauth. Currently I'm using a rails application as an API and backbone as a javascript front-end (on the same application) I decided I wanted to lock down the API with OAuth and provided a custom strategy for Omniauth to access the API as a client as well as Doorkeeper to handle the authorization logic module OmniAuth module Strategies class Twiddle <

Use omniauth-facebook when app id and app secret are different for each request?

╄→гoц情女王★ 提交于 2019-12-18 13:05:58
问题 The omniauth-facebook README mentions how to set it up in an initializer and how to set options like scope per request only. I wonder if it is possible to set app id and app secret per request as well. 回答1: You can do this: On your omniauth.rb, do this: Rails.application.config.middleware.use OmniAuth::Builder do provider :facebook,:setup => true end Then on your controller you have to define the following: def setup request.env['omniauth.strategy'].options[:client_id] = @site.facebook_key

OmniAuth doesn't work with Route Globbing in Rails3

為{幸葍}努か 提交于 2019-12-18 11:35:59
问题 I am trying to follow the Railscast 241 Simple OmniAuth and it works fine unless I have Route Globbing at the end of /config/routes.rb : match '*uri' => "posts#index" If I request /auth/twitter with the globbing then OmniAuth does nothing: Started GET "/auth/twitter" for 127.0.0.1 at 2011-04-03 19:17:44 +0200 Processing by PostsController#index as HTML Parameters: {"uri"=>"auth/twitter"} Rendered posts/index.html.haml within layouts/application (9.0ms) Completed 200 OK in 103ms (Views: 14.6ms

Setup multiple providers with devise :omniauthable

这一生的挚爱 提交于 2019-12-18 11:06:24
问题 I just got "Devise 1.2 supports integration with OmniAuth tutorial" working but I'd like to setup multiple providers to refer the same user. I'm looking for some good sample code to look at. I'm also not sure "multiple providers" is possible with default "devise :omniauthable" implementation and I'd like to reach the "one user many providers" effect, like described by Ryan Bates 235-omniauth-part-1, 236-omniauth-part-2 but I'm asking if a cleaner way, less hacked mixed models, could be

Setup multiple providers with devise :omniauthable

徘徊边缘 提交于 2019-12-18 11:05:00
问题 I just got "Devise 1.2 supports integration with OmniAuth tutorial" working but I'd like to setup multiple providers to refer the same user. I'm looking for some good sample code to look at. I'm also not sure "multiple providers" is possible with default "devise :omniauthable" implementation and I'd like to reach the "one user many providers" effect, like described by Ryan Bates 235-omniauth-part-1, 236-omniauth-part-2 but I'm asking if a cleaner way, less hacked mixed models, could be

How do I refresh my google_oauth2 access token using my refresh token?

烈酒焚心 提交于 2019-12-18 04:47:08
问题 I have a RoR app where I am authenticating against Google using omniauth and google_oauth2 where I am requesting offline access. How do I use my refresh token to request a current access token? Also, how can I refresh my access token when it no longer works? I don't want to have any user interface in this situation, assuming of course that the authorization hasn't been taken away. 回答1: I don't see anything in google_oauth2 that handles fetching a new access_token with a refresh token, so it

Devise, OmniAuth & Facebook: “Not found. Authentication passthru.”

帅比萌擦擦* 提交于 2019-12-18 04:40:48
问题 Trying to follow along with https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview and I'm stumped. I've got config.omniauth :facebook, ENV['FB_APP_ID'], ENV['FB_APP_SECRET'] in my config/initializers/devise.rb, devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" } in my routes.rb, and an OmniAuthCallbacks controller defined. When I visit user_omniauth_authorize_path(:facebook) , I get: Not found. Authentication passthru. I'm not sure what to do