Skip to content

Instantly share code, notes, and snippets.

tarted GET "/users/auth/stripeplatform/callback?scope=read_write&code=ac_csg86wsumIjCeXkwfbwFV0kRTBqYo3lN" for 127.0.0.1 at 2012-06-01 11:45:31 -0500
Processing by Users::OmniauthCallbacksController#failure as HTML
Parameters: {"scope"=>"read_write", "code"=>"ac_csg86wsumIjCeXkwfbwFV0kRTBqYo3lN"}
Redirected to https://127.0.0.1/users/sign_in
Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-01 11:45:32 -0500
Processing by Devise::SessionsController#new as HTML
Redirected to https://127.0.0.1/
Started GET "/users/auth/stripeplatform/callback?scope=read_write&code=ac_csg86wsumIjCeXkwfbwFV0kRTBqYo3lN" for 127.0.0.1 at 2012-06-01 11:45:31 -0500
Processing by Users::OmniauthCallbacksController#failure as HTML
Parameters: {"scope"=>"read_write", "code"=>"ac_csg86wsumIjCeXkwfbwFV0kRTBqYo3lN"}
Redirected to https://127.0.0.1/users/sign_in
Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
def stripeplatform
# You need to implement the method below in your model
@user = User.find_for_stripeplatform_oauth(request.env["omniauth.auth"], current_user)
if @user.persisted?
flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Stripeplatform"
sign_in_and_redirect @user, :event => :authentication
else
An error has occurred in git when running `git clone "git@github.com:AnthonyJoseph/omniauth-stripeplatform.git" "/tmp/build_2fcpkxfjrc2xq/.bundle/gems/ruby/1.9.1/cache/bundler/git/omniauth-stripeplatform-00a3c3c2673960648e68c0a9ae0fa77104fcbfb9" --bare --no-hardlinks`. Cannot complete bundling.
Received wrong number of arguments. ["PRIVATEKEY"]
Rails.root: /home/afresta/rails_projects/GarageSellr.com
Application Trace | Framework Trace | Full Trace
omniauth (1.1.0) lib/omniauth/strategy.rb:136:in `initialize'
lib/stripedotcom.rb:11:in `initialize'
rack (1.4.1) lib/rack/builder.rb:82:in `new'
rack (1.4.1) lib/rack/builder.rb:82:in `block in use'
rack (1.4.1) lib/rack/builder.rb:130:in `[]'
rack (1.4.1) lib/rack/builder.rb:130:in `block in to_app'
ArgumentError
Received wrong number of arguments. ["PRIVATEKEy"]
Rails.root: /home/afresta/rails_projects/GarageSellr.com
Application Trace | Framework Trace | Full Trace
omniauth (1.1.0) lib/omniauth/strategy.rb:136:in `initialize'
lib/stripedotcom.rb:11:in `initialize'
rack (1.4.1) lib/rack/builder.rb:82:in `new'
rack (1.4.1) lib/rack/builder.rb:82:in `block in use'
config/initiliazers/omniauth.rb
require 'stripedotcom'
# Set the default hostname for omniauth to send callbacks to.
# seems to be a bug in omniauth that it drops the httpS
# this still exists in 0.2.0
# note: you will have to change this url to your Heroku app url when you deploy it to Heroku.
OmniAuth.config.full_host = 'http://localhost:3000'
activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- omniauth/oauth (LoadError)
require 'multi_json'
module OmniAuth
module Strategies
class Stripedotcom < OAuth2
def initialize(app, client_id = nil, client_secret = nil, options = {}, &block)
client_options = {
:site => "https://manage.stripe.com",
:authorize_path => "/oauth/authorize",
:access_token_path => "/oauth/token"
ArgumentError
Received wrong number of arguments. ["APIKEY"]
Rails.root: /home/afresta/rails_projects/GarageSellr.com
Application Trace | Framework Trace | Full Trace
lib/stripedotcom.rb:12:in `initialize'
Request
Parameters: