This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- omniauth/oauth (LoadError) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |