Questions tagged [faraday-oauth]

16 questions
46
votes
9 answers

Omniauth Facebook Error - Faraday::Error::ConnectionFailed

(FYI: I'm following the Twitter Omniauth from railscast #241. I used Twitter successfully, now going onto Facebook) As soon as I logged into Facebook using Omniauth, I get this error: Faraday::Error::ConnectionFailed SSL_connect returned=1 errno=0…
user1372829
  • 1,121
  • 1
  • 11
  • 21
6
votes
1 answer

# Connection refused - connect(2)

I am receiving the message # Connection refused - connect(2) after using checkboxes to select items in users/edit.html.erb and pressed save. The items I selected are in an array called amenities_list. These items are…
achilles77
  • 325
  • 2
  • 3
  • 11
2
votes
3 answers

How do I fix this gem dependency problem in Rails 3 (bundler)?

For some reason, my project has messed up and now its throwing errors every time I try to run bundle install. Somem of the errors i've managed to fix by reordering the gems in my Gemfile, but now i'm getting this one: Bundler could not find…
noli
  • 15,927
  • 8
  • 46
  • 62
2
votes
0 answers

Rails faraday timeout error omniauth with custom strategy doorkeeper

I'm posting the exact same title as this post Faraday timeout error with omniauth (custom strategy)/doorkeeper because I'm just having the same, and almost exact problem. I tested the same code in centOS (I'm currently on windows) and it worked…
2
votes
1 answer

Getting Faraday::Error::ConnectionFailed when connecting from heroku rails app

My company has a simple oauth server at https://auth.vitalvu.com I'm developing a rails app that needs to make requests to that server (via the omniauth-oauth2 gem). When I try to run the app on Heroku I get the…
phaedryx
  • 2,024
  • 3
  • 16
  • 24
1
vote
2 answers

Api response is an HTML redirect page, while I expect a JSON response

I'm using the Faraday gem to request some data from the LibreNMS API. But when i display the response body I get some HTML code that looks like a redirect page to the libreNMS login. I have the following code (BaseService class): def…
perkoei
  • 11
  • 1
1
vote
1 answer

Rspec: Getting Omniauth/oauth0 working with a Faraday Request

I am trying to test a graphql request with Faraday, but I first need to authenticate with omniauth/auth0. I got it to authenticate by setting def sign_in(user, invalid=false, strategy = :auth0) invalid ? mock_invalid_auth_hash :…
madav
  • 2,918
  • 1
  • 13
  • 17
1
vote
1 answer

Retrieving OAuth tokens (on server) from Faraday OAuth module (from client)

I'm using Faraday to communicate between two web apps that I am developing (background and a related question). I'm using OAuth Tokens as part of the upload/connection form the client app to the server app. However, I can't seem to find the OAuth…
cbrulak
  • 15,436
  • 20
  • 61
  • 101
0
votes
2 answers

Gem error. can't activate faraday (>= 0.7.3, runtime) for ["youtube_it-2.1.1"], already activated faraday-0.5.7 for ["instagram-0.8"]"

I am making a Rails(3.0.4) application using the youtube_it API. I installed the gem using gem install youtube_it, but when I run the script I get this error: can't activate faraday (>= 0.7.3, runtime) for ["youtube_it-2.1.1"], already activated…
serpent403
  • 803
  • 16
  • 32
0
votes
1 answer

Rails: OAuth gem dependency error w/ bundler?

Trying to start the server and I'm getting this: /Users/Ross/.rvm/gems/ruby-1.9.2-p180@webapp/gems/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require': no such file to load -- addressable/uri (LoadError) from…
Ross R
  • 387
  • 1
  • 5
  • 21
0
votes
0 answers

Oauthresponse.parsed gave empty string in rails 7?

I have updated my rails version to 7, here when I try to get parsed from the oauth response it always returns an empty string, but not the parsed response, but in rails 4 it gave the parsed response. For example: in Rails 4 when I print…
jansha
  • 164
  • 1
  • 8
0
votes
1 answer

How to change the Auth header in every retry in Faraday client in ruby?

I have an HTTP get method defined in my Rails application something like this. I am wondering how can I update a new OAuth token in the headers on every single retry? def configure(service_base_uri, auth_header) Faraday.new(service_base_uri)…
DeepBlueSeaArrow
  • 103
  • 1
  • 10
0
votes
1 answer

Faraday - Can I use outbound proxy for requests?

My app works great on localhost. Our Cloud Foundry setup somehow does not have outbound connectivity... so I have been told I can get outbound connectivity through a proxy. What do I need to change in my Faraday requests to use that proxy? My code…
slindsey3000
  • 4,053
  • 5
  • 36
  • 56
0
votes
2 answers

How to tell Faraday to preserve hashbang in site URL?

I'm working on a fork of a library that implements Faraday to build URLs. site = "https://example.io/#/" path = "oauth/authorize" connection = Faraday.new(site) resource = Faraday::Utils.URI(path) URL = connection.build_url(resource) Notice that my…
Charney Kaye
  • 3,667
  • 6
  • 41
  • 54
0
votes
1 answer

Attempting a PUT to Google Groups API using OAuth2 gem and Ruby

I'm trying to do a PUT call on a Google Groups API using Ruby and the OAuth2 GEM. I've managed to authenticate OK, and the GET call works properly, but I can't seem to get the call to use the PUT method. I thought the following would work, since…
JRQ
  • 545
  • 4
  • 17
1
2