omniauth-stripe-platform 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -29,10 +29,12 @@ Here's a quick example, adding the middleware to a Rails app in
|
|
29
29
|
|
30
30
|
```ruby
|
31
31
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
32
|
-
provider :stripe_platform, ENV['STRIPE_PLATFORM_KEY']
|
32
|
+
provider :stripe_platform, ENV['STRIPE_PLATFORM_KEY'], ENV['STRIPE_SECRET']
|
33
33
|
end
|
34
34
|
```
|
35
35
|
|
36
|
+
Your `STRIPE_PLATFORM_KEY` is application-specific and your `STRIPE_SECRET` is account-specific
|
37
|
+
|
36
38
|
Then you can hit `/auth/stripe_platform`
|
37
39
|
|
38
40
|
## Contributing
|
@@ -5,10 +5,6 @@ module OmniAuth
|
|
5
5
|
class StripePlatform < OmniAuth::Strategies::OAuth2
|
6
6
|
option :name, 'stripe_platform'
|
7
7
|
|
8
|
-
args :client_id
|
9
|
-
|
10
|
-
option :client_id, nil
|
11
|
-
|
12
8
|
option :client_options, {
|
13
9
|
:site => 'https://manage.stripe.com'
|
14
10
|
}
|
@@ -32,11 +28,7 @@ module OmniAuth
|
|
32
28
|
end
|
33
29
|
|
34
30
|
def raw_info
|
35
|
-
|
36
|
-
@raw_info = access_token.refresh!
|
37
|
-
else
|
38
|
-
@raw_info ||= access_token.post(access_token.client.token_url).parsed || {}
|
39
|
-
end
|
31
|
+
@raw_info ||= deep_symbolize(access_token.post(access_token.client.token_url).parsed || {})
|
40
32
|
end
|
41
33
|
end
|
42
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-stripe-platform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
segments:
|
76
76
|
- 0
|
77
|
-
hash:
|
77
|
+
hash: 3474427824474319481
|
78
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
79
|
none: false
|
80
80
|
requirements:
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
segments:
|
85
85
|
- 0
|
86
|
-
hash:
|
86
|
+
hash: 3474427824474319481
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
89
|
rubygems_version: 1.8.24
|