isaacsanders / omniauth-stripe-connect

Stripe Connect OAuth2 Strategy for OmniAuth 1.0
MIT License
130 stars 75 forks source link

Received wrong number of arguments. (ArgumentError) #1

Closed xdmx closed 12 years ago

xdmx commented 12 years ago

How do you config this gem? I've tried with

Rails.application.config.middleware.use OmniAuth::Builder do provider :stripe_platform, 'my-stripe-platform-client-id', 'my-stripe-test-secret-key' end

And when I start the server I receive /home/user/.rvm/gems/ruby-1.9.3-p125/gems/omniauth-1.1.0/lib/omniauth/strategy.rb:136:in `initialize': Received wrong number of arguments. "my-stripe-test-secret-key"

Trying with: provider :stripe_platform, 'my-stripe-platform-client-id'

the error is: Not found. Authentication passthru.

I also see from the Stripe docs that it's required a custom params header to authenticate and to use the oauth lib from github instead the gem. How did you make this works?

isaacsanders commented 12 years ago

Sorry. Forgot to update the README.

It requires only a client id.

Stripe Platform also needs to be enabled.

Contact support@stripe.com of you have questions about Stripe Platform.

Check out the Stripe Platform docs to see more.

http://stripe.com/platform

On Jun 26, 2012, at 7:45 AM, xdmxreply@reply.github.com wrote:

How do you config this gem? I've tried with

Rails.application.config.middleware.use OmniAuth::Builder do provider :stripe_platform, 'my-stripe-platform-client-id', 'my-stripe-test-secret-key' end

And when I start the server I receive /home/user/.rvm/gems/ruby-1.9.3-p125/gems/omniauth-1.1.0/lib/omniauth/strategy.rb:136:in `initialize': Received wrong number of arguments. "my-stripe-test-secret-key"

Trying with: provider :stripe_platform, 'my-stripe-platform-client-id'

the error is: Not found. Authentication passthru.

I also see from the Stripe docs that it's required a custom params header to authenticate and to use the oauth lib from github instead the gem. How did you make this works?


Reply to this email directly or view it on GitHub: https://github.com/isaacsanders/omniauth-stripe-platform/issues/1

xdmx commented 12 years ago

Yeah, I've tried with

Rails.application.config.middleware.use OmniAuth::Builder do provider :stripe_platform, 'my-stripe-platform-client-id' end

and also the devise+omniauth integration: config.omniauth :stripe_platform, 'my-stripe-platform-client-id'

but when I go to /auth/stripe_platform it says "Not found. Authentication passthru."

My guess is that that error is from Stripe itself telling that the Authentication header is missing (last part of https://stripe.com/docs/tutorials/platform )

isaacsanders commented 12 years ago

f37993311c001a17a5bca1e7c65281d2c0516586 should solve this.

This is very alpha right now, and I want to thank you for trying this.

I will release a new version in the next few minutes.

isaacsanders commented 12 years ago

http://rubygems.org/gems/omniauth-stripe-platform