Tagged Questions
0
votes
0answers
19 views
Rails Dwolla gem trying to assign “address”?
I'm using omniauth/dwolla to get a user's dwolla ID for storing in my Rails database. According to my Gemfile.lock, the gems are dwolla (0.0.15) and omniauth-dwolla (0.0.13).
When I try to call ...
1
vote
0answers
31 views
Ruby Gem Twitter - certificate verify failed (Twitter::Error::ClientError)
I am trying to use the ruby gem 'twitter' but for unknown reasons I cant get it to work.
Here is the .rb code:
require 'twitter'
puts "Greetings, World!"
puts "Checkpoint 1"
Twitter.configure do ...
1
vote
2answers
123 views
How do I retrieve a status from twitter with the oauth gem directly?
How can I grab the json for a tweet using OAuth gem?
I tried the following but it keeps getting an access denied even though I know my keys are good:
def prepare_access_token(consumer_key, ...
0
votes
1answer
11 views
Ruby OAuth gem repository?
I cannot find the repository hosting the latest version of the oauth gem (v 0.4.7).
I've got the pelle/oauth github repository wich host the 0.4.3, and a link to the supposedly up-to-date ...
1
vote
1answer
47 views
Generating SASL XOAUTH2 client response for Gmail IMAP access using Ruby
I'm trying to access my Gmail emails over IMAP using XOAUTH2 in Ruby.
I've successfully generated an access token (and refresh token) by authenticating using OAuth 2.0 with the oauth2 gem. I'm going ...
0
votes
1answer
32 views
Omniauth-twitter in rails: OAuth::Unauthorized 401
I have been road blocked for 2 days on basic omniauth authentication with twitter. I followed along with Ryan Bates' railscast on simple omniauth, but have been unable to get past the ...
1
vote
0answers
40 views
Google OAuth access tokens
I'm so confused by OAuth and Google. It took me forever to get the refresh_token to create a new access_token. Then to find out the refresh_token expires too?? What is the point of that!!!??
All I ...
0
votes
0answers
15 views
Having trouble with official Yahoo BOSS API Ruby Documentation
I'm following the tutorial over here, right on developer.yahoo.com:
I left their oauth_util.rb alone but I have changed a couple of things with test.rb - the line 1 and I added the keys, obviously.
...
0
votes
1answer
38 views
Is it safe to distribute a Dropbox client secret with the application?
Is it safe to distribute a Dropbox client secret with the application?
For example, if I wanted to release an open source project, I would need to embed the client secret into the application (since ...
0
votes
0answers
26 views
OAuth signature_invalid error using PesaPal API with Ruby
I'm having a real nightmare trying to get the PesaPal API to work for me using Ruby...
I appreciate that it's probably not the most commonly used API but if there's anybody online here who has more ...
1
vote
0answers
30 views
Authenticating to a Oauth 2-legged system
I'm trying to authenticate to a webservice using 2legged oauth. I have the next one working java example creating the authenticated URL using the signpost library:
String consumerKey = "KEY";
...
0
votes
3answers
76 views
How do I get data from this object?
Here's the object that's returned. I ultimately need to get two things: @token and @expires_at. How would I get them from this?
@my_object = access_token(params[:provider])
Then outputs:
...
0
votes
0answers
44 views
Ruby: Twitter get_access_token always returns 401 unauthorized
I am trying to use 3-legged authentication to get user's access token. This is just a prototype, so it is not implemented with session yet to save some returned data of API. Please read through the ...
3
votes
1answer
100 views
Obtaining an OAuth token in ruby (for the Mendeley API)
I cannot seem to figure out OAuth authentication for calls to Mendeley's authenticated API (Note that there's an unmaintained? gem for public methods here).
I create an application at their web ...
0
votes
0answers
45 views
Ruby twitter gem: How to provide user login?
I want to use the twitter gem for my application. With my own oauth_token / oauth_secret it works fine, but now I want to establish the possibility for user sign in. In the gem documentation I can not ...
0
votes
0answers
44 views
Rails: OAuth accounts with something other than user using oauth_plugin
I'm setting up an OAuth consumer rails app using a gem called oauth_plugin (https://github.com/pelle/oauth-plugin)
On my app users have access to multiple projects and each project needs to be able ...
0
votes
0answers
25 views
Signing from Rails App Controller
I have two rails applications one is an owned App and the another one has installed Community Engine. The idea I have in mind is that when I'm signing into one application I could also create a ...
0
votes
1answer
120 views
Ruby Gem Twitter - Twitter::Error::ClientError: initialize: name or service not known
I want to use the ruby gem 'twitter' but for an unknown reason it does not work.
Here's the error I get when running the script:
...
0
votes
0answers
30 views
soundcloud oauth2 redirect weirdness
When the redirect happens I also see the *access_token* as a parameter in the anchor.
I didn't even ask for an access_token just yet because I don't have the code or I am missing something?
...
0
votes
1answer
187 views
Setup simple facebook oauth using koala ruby gem
Right now I am pulling facebook profile photo in my app using
graph = Koala::Facebook::API.new
profile_path = graph.get_picture("username",:type=>"large")
...
0
votes
0answers
205 views
Programmatically get access_token from OAuth - Using JIRA-Ruby gem
I'm trying to write a JIRA-ruby script (only be used from command-line) to mark some JIRA issue closed automatically.
I borrow an example from here because I'm using 'jira-ruby' gem.
This works ...
1
vote
0answers
75 views
Google API for Blogger 3.0 error
I am trying to run sample code in Ruby to fetch blog posts list using Google's APIs for Blogger 3.0. This is the code:
require 'rubygems'
require 'google/api_client'
require 'sinatra'
require ...
5
votes
6answers
316 views
Fusion Tables: Why do I keep getting a “400 Bad Request” error when trying to update a table style via Ruby's RestClient gem
I'm trying to update a style for one of my Fusion Tables by using the Ruby gem RestClient.
Here's my code:
require 'rest_client'
tableId = '<STRING CONTAINING TABLEID>'
styleId = '<STRING ...
-1
votes
2answers
93 views
Make a request with an “consumer token” with oauth2
I'm using intridea/oauth2 for oauth2 functionality. Everything is working fine with authentication and making requests with an access token.
But what i can not find out is how to make a request ...
1
vote
1answer
94 views
Soundcloud Oauth implementation: Why the hash parameters?
Concerning https://github.com/sinatra/sinatra/issues/596, which i wrongly diagnosed as a sinatra bug.
I'm having the following issue: I'm using Soundcloud OAuth workflow to implement single-sign-on ...
0
votes
1answer
110 views
OAuth2 gem: implementation for third party - access other accounts data in seek.com
I'm connecting to an API (seek.com.au) which uses OAuth2 for authentication. I struggled with OAuth2 gem for a while and I ended up writing the plain requests as will follow. Although this is working, ...
0
votes
1answer
92 views
How to make multiple requests with ruby oauth?
I was able to get an access token working with oauth, but the end point limits the maximum records per request to 100.
I need to get more than that, and am wondering if there is a simple/common way ...
0
votes
0answers
61 views
OAuth from script
I've seen a few questions/guides about implementing 3 step OAuth inside of a Rails app, but I'm interested in only the client side part of it. I'm trying to authenticate as a consumer to an OAuth2 ...
0
votes
0answers
36 views
Calling Google API over oAuthClient2 in Ruby
Here is the code in Python I found in Google developers web site.
def fetch_license_data(userid):
"""Fetches the license for a given user by making an OAuth signed request
to the license server.
...
1
vote
1answer
219 views
To make an API call with an oAuth token
I want to make oAuth request in Ruby. I skimmed some examples but none of them used oauth_token_secret and oauth_token to make a request, they only used consumer_key and consumer_secret to get ...
0
votes
1answer
95 views
oAuth 1/2 library for Ruby [closed]
I'm looking for most popular oAuth 1/2 library for Ruby. I thought it was signet, but it turned out that its github page has been removed.
Your thoughts?
2
votes
0answers
139 views
Linked In authentication and aggregate data
I'm building a web app with Ruby on Rails and I want my users to authenticate and aggregate data from Linked In (and others like Github, Twitter, etc...).
I am using these gems:
Devise for ...
7
votes
1answer
267 views
how to force rack:session + sinatra to read “rack.session” from params instead of cookies
I am dealing with oauth 1.0 (twitter and flickr). Website works at port 80 and oauth server works at port 8080
Algorithm:
send ajax request to oauth server to check if user have valid access_token
...
1
vote
1answer
153 views
How do I get write-access through Salesforce REST API?
I am currently attempting to access a salesforce.com database via Ruby and the databasedotcom-gem. I followed the readme here: https://github.com/heroku/databasedotcom
I was able to connect to the ...
1
vote
0answers
70 views
OmniAuth/OAuth Authentication from a ruby script
Is there a way I can test out the OmniAuth authentication from a standalone ruby script?
Every resource I could find on web lists its usage only in Rails project.This link too: ...
0
votes
1answer
76 views
OAuth consumer stopped working, where do I start debugging?
I have a small Sinatra app that uses Twitter OAuth for authentication. Some time between October 8th and today, it stopped working.
The symptom: I get redirected to Twitter, I sign in, I get ...
0
votes
0answers
77 views
Ruby & OAuth: Pushing to Tumblr
I am in the process of learning Ruby, and for a decent first exercise, I wanted to see if I could take my Octopress blog, parse the HTML files, and push them into my new Tumblr account and populate ...
0
votes
1answer
299 views
Specify token options for OmniAuth OAuth2 based strategy
I'm creating custom strategy for Nimble.com API. As they're using OAuth, it's pretty simple.
require 'omniauth-oauth2'
module OmniAuth
module Strategies
class Nimble < ...
1
vote
3answers
57 views
What's a more rubyesque way of doing this?
I'm checking a session hash for some oAuth values and then setting them if they don't exist. This is my existing code:
unless session[:oauth][:request_token].nil? && ...
0
votes
0answers
49 views
Where to store request_token while user is redirected
I am following the steps given below.
consumer = Dropbox::API::OAuth.consumer(:authorize)
request_token = consumer.get_request_token
request_token.authorize_url(:oauth_callback => ...
0
votes
2answers
189 views
Why does Mechanize raise “undefined method 'any?'” when it sees bad OAuth credentials?
I'm testing some Ruby code that uses Mechanize under the covers. I found that when I pass a bad OAuth token in a request, Mechanize throws an unexpected exception.
I make my call with the bad token, ...
0
votes
1answer
52 views
GET request from rails app with permanent access_token
I wish to access a web services api from within a rails application and display the data from the api. The api uses a permanent access_token and a parameter full_access=true. So the url i wish to ...
2
votes
0answers
276 views
sinatra, omniauth, launchpad.net strategy unable to get request token
I'm attempting to pull a request token via https://launchpad.net using sinatra, and a custom omniauth strategy
require 'omniauth-oauth' ...
1
vote
1answer
117 views
Evernote API Binary Error - Ruby on Rails - OAuth
I am trying to take the Evernote Ruby example https://github.com/evernote/evernote-sdk-ruby which uses Sinatra and integrate it into Rails.
I have everything working fine until pulling a list of ...
1
vote
0answers
63 views
Ruby gem for OAuth using EventMachine?
I am trying to use em-http-request with OAuth. It seems em-http-oauth-request is very outdated.
Does anyone know a simple way of doing an async OAuth request?
0
votes
2answers
239 views
Google Apps Provisioning API: HTTPBadRequest 400 Bad Request error
I've created a Google Apps Marketplace app and I'm trying to get a list of all users of a Google apps domain with a call to the Google Apps Provisioning API but can't get past this error:
...
0
votes
1answer
191 views
how to interpret google api oauth callback
i'm attempting to gain access to my own gmail account via a sinatra app i'm building. i'm sending a request to the google api in the form of
...
0
votes
0answers
164 views
What's wrong with my code for Dropbox OAuth authentication in Rails?
I have this action in my controller that handles authentication, under a route named dropbox_authorize:
def authorize
if params[:oauth_token]
s = ...
0
votes
1answer
86 views
How can I use an OAuth::AccessToken in a resque worker?
I have a script that retrieves some twitter usernames and I want to get more information from twitter for those users. Because there will be a lot of users I want to process them in parallel using ...
2
votes
2answers
232 views
What is the proper way to handle Oauth Consumer Key and Secret in Rails?
I have a Rails application that connects to Facebook using OAuth. I'm looking for is a full description of how to handle the OAuth key and secret I get from facebook.
Where to store them?
How to ...