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
| 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
| 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
| 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_only&code=ac_ifbaq95Z0c6ZBTt3uNIalsIeoUyJgTP0" for 127.0.0.1 at 2012-06-01 13:37:52 -0500 | |
| Processing by Users::OmniauthCallbacksController#failure as HTML | |
| Parameters: {"scope"=>"read_only", "code"=>"ac_ifbaq95Z0c6ZBTt3uNIalsIeoUyJgTP0"} | |
| Redirected to https://127.0.0.1/users/sign_in | |
| Completed 302 Found in 8ms (ActiveRecord: 0.0ms) | |
| Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-01 13:37:53 -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
| require 'omniauth/strategies/oauth2' | |
| require 'base64' | |
| require 'openssl' | |
| require 'rack/utils' | |
| require 'multi_json' | |
| module OmniAuth | |
| module Strategies | |
| class Stripeplatform < OmniAuth::Strategies::OAuth2 | |
| class NoAuthorizationCodeError < StandardError; end |
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
| S::Application.routes.draw do | |
| devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" } | |
| resources :merchants | |
| resources :users | |
| resources :digital_products |
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 'omniauth/strategies/oauth2' | |
| require 'base64' | |
| require 'openssl' | |
| require 'rack/utils' | |
| require 'multi_json' | |
| require 'stripe' | |
| module OmniAuth | |
| module Strategies | |
| class Stripeplatform < OmniAuth::Strategies::OAuth2 |
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 'omniauth-oauth2' | |
| require 'stripe' | |
| module OmniAuth | |
| module Strategies | |
| class StripePlatform < OmniAuth::Strategies::OAuth2 | |
| DEFAULT_SCOPE = 'read_write' |
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 "/auth/stripeplatform/callback?scope=read_write&code=ac_yt3ABgKB0p3QbzChvdnBIQPVeVrlLAuA" for 66.165.126.130 at 2012-06-03 17:40:59 -0500 | |
| (stripeplatform) Callback phase initiated. | |
| (stripeplatform) Authentication failure! invalid_credentials: OAuth2::Error, : | |
| { | |
| "error": "invalid_client", | |
| "error_description": "No authentication credentials were provided. Send your secret API key in the Authorization header using the Bearer authentication method" | |
| } | |
| Started GET "/auth/failure?message=invalid_credentials&origin=https%3A%2F%2Fhomey.zapto.org%2F&strategy=stripeplatform" for 66.165.126.130 at 2012-06-03 17:40:59 -0500 |