omniauth

Omniauth with FourSquare issue

╄→гoц情女王★ 提交于 2020-01-05 07:40:28
问题 UPDATE 2011/05/01: I later carefully read through FourSquare's API document, and found it says: (Note that the request parameters are not JSON, they are standard HTTP keys and values.) All authentication is via OAuth2, which means that all requests MUST be https. Could this be the problem that I don't have a SSL connection in my development machine? Hi all! I am trying to connect FourSquare via Omniauth, I followed the Railscast toturial below, and change the provider into foursquare. But the

Omniauth with FourSquare issue

心已入冬 提交于 2020-01-05 07:40:24
问题 UPDATE 2011/05/01: I later carefully read through FourSquare's API document, and found it says: (Note that the request parameters are not JSON, they are standard HTTP keys and values.) All authentication is via OAuth2, which means that all requests MUST be https. Could this be the problem that I don't have a SSL connection in my development machine? Hi all! I am trying to connect FourSquare via Omniauth, I followed the Railscast toturial below, and change the provider into foursquare. But the

Rails omniauth facebook SSL handshake failure

浪尽此生 提交于 2020-01-05 07:31:08
问题 My app has been running fine for months, and all of a sudden logging in just doesn't work, i get this: 2014-10-18T18:09:33.971670+00:00 app[web.1]: Faraday::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: sslv3 alert handshake failure): 2014-10-18T18:09:33.971672+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/net/http.rb:918:in `connect' 2014-10-18T18:09:33.971674+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/net/http.rb:918:in `block in connect' 2014-10

Omniauth-facebook login does not work

╄→尐↘猪︶ㄣ 提交于 2020-01-05 01:25:33
问题 I cloned example facebook integration this repo to see how the omniauth-facebook works. I setup my own app_id and app_secret from my facebook app. The problem is the facebook login doesn't works. It throws an error: "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://" when I try login via facebook. Does anyone have error like this one? How to solve it? 回答1: It looks like Facebook enforces HTTPS by default, but

Omniauth-facebook login does not work

和自甴很熟 提交于 2020-01-05 01:23:24
问题 I cloned example facebook integration this repo to see how the omniauth-facebook works. I setup my own app_id and app_secret from my facebook app. The problem is the facebook login doesn't works. It throws an error: "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://" when I try login via facebook. Does anyone have error like this one? How to solve it? 回答1: It looks like Facebook enforces HTTPS by default, but

oauth_callback for Khan Academy API not woring

耗尽温柔 提交于 2020-01-03 04:47:11
问题 We are working on wiring up our application with Khan Academy and I am not able to get a proper redirect back after authorizing the request token. I always get the default callback along with the body "OK" and NEVER get redirected back to the location specified on our oauth-callback. I am getting a javascript error in the browser and I am wondering if this is the source of the problem. Here is an example of our authorize call (after successfully getting the request token): https://www

Sorcery and Simple Form implementation

百般思念 提交于 2020-01-03 02:33:09
问题 long time reader first time user. I'm putting together my first RoR application and I've isolated everything my app should use down to:- Sorcery Omniauth CanCan twitter-bootstrap (converted to sass) and Simple Forms. Clean, clear and simple....Not. Cannot for the life of me integrate (what would seem to be the most simplest of tasks) simple forms with a Sorcery "Login" without getting errors on the 'remember_me' field. Simple forms doesn't have a simple_form_tag (only simple_form_for) option

Remove '#_=_' from the Facebook redirect URL [duplicate]

筅森魡賤 提交于 2020-01-01 07:46:41
问题 This question already has answers here : Facebook Callback appends '#_=_' to Return URL (21 answers) Closed 6 years ago . According to https://developers.facebook.com/blog/post/552/ the FB Graph API now appends a _=_ hash to the end of the URL it redirects back to when redirect_uri is not set. However, it is still appending it even though my call specifies the redirect_uri . Short of redirecting again after FB returns to my site, how can I get FB to stop appending the hash? PS - the hash is

Omniauth Facebook Manual Rails Routes

流过昼夜 提交于 2020-01-01 07:34:12
问题 I am trying to use Omniauth facebook with two devise models in a Rails 3 app. Currently that's not something that's possible using omniauthable and the devise helpers. A similar question answered how to do this: Omniauth "with" STI and devise "..move your omniauth configuration from devise.rb to omniauth.rb and create your own omniauth routes.' But I am having trouble in defining these routes and helpers, i.e. for facebook I used a devise helper like this: user_omniauth_authorize_path(

How to use omniauth to make authenticated calls to services?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 04:53:05
问题 I've received a token / secret from a service using OmniAuth and can store it for users, but I'm stuck as to how to actually use these to call a service. The closest thing I've seen to this question is here but the way he's solved that there doesn't feel right. I feel like OmniAuth likely does this all for you if you know what you're doing. Netflix has a pretty involved auth process, so I was hoping to skirt all of this by using OmniAuth to abstract me from all of this. Given that I have a