omniauth-stripe-connect 2.10.0 → 2.10.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a0d8617b1dada6b3ea79530e7c1824fab19690d
|
4
|
+
data.tar.gz: 16c8012ac170c9138ffeef221bd1b3a0105595df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c11cbdbc4ca6e0e5d92ab08e9726277d8282d143398d7e8ba3f468e8b7d72babc06f1eb15614e54c1340b7ddb122b42462a5895baad0b4c7ced2eed542ef496a
|
7
|
+
data.tar.gz: df610083bd72bdd79dc4e241bfb91ed26d8f780a05748b64fc328c41ccebb184451b09892cf542129d57a4e7acefdbd2a9d06d8729c1bb58879c4fc6cd1027f5
|
data/README.md
CHANGED
@@ -69,7 +69,7 @@ The Webhook URL will be something similar:
|
|
69
69
|
|
70
70
|
Then you can hit `/auth/stripe_connect`
|
71
71
|
|
72
|
-
If you hit `/auth/stripe_connect` with any query params, they will be passed along to Stripe. Read [Stripe's OAuth Reference](https://stripe.com/docs/connect/reference) for more information.
|
72
|
+
If you hit `/auth/stripe_connect` with any query params, they will be passed along to Stripe. You can access these params from `request.env['omniauth.params']`. Read [Stripe's OAuth Reference](https://stripe.com/docs/connect/reference) for more information.
|
73
73
|
|
74
74
|
## Auth Hash
|
75
75
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe OmniAuth::Strategies::StripeConnect do
|
4
|
-
let(:fresh_strategy){ Class.new(OmniAuth::Strategies::StripeConnect) }
|
4
|
+
let(:fresh_strategy) { Class.new(OmniAuth::Strategies::StripeConnect) }
|
5
5
|
|
6
6
|
|
7
7
|
before(:each) do
|
@@ -71,4 +71,15 @@ describe OmniAuth::Strategies::StripeConnect do
|
|
71
71
|
expect(instance.token_params[:redirect_uri]).to be_nil
|
72
72
|
end
|
73
73
|
end
|
74
|
+
|
75
|
+
describe '#callback_url' do
|
76
|
+
subject { fresh_strategy }
|
77
|
+
OmniAuth.config.full_host = 'https://foo.com/'
|
78
|
+
|
79
|
+
it 'returns a url with the host and path' do
|
80
|
+
instance = subject.new('abc', 'def', :callback_path => 'bar/baz')
|
81
|
+
instance.authorize_params
|
82
|
+
expect(instance.callback_url).to eq 'https://foo.com/bar/baz'
|
83
|
+
end
|
84
|
+
end
|
74
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-stripe-connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.10.
|
4
|
+
version: 2.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Sanders
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|