omniauth-stripe-connect 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -15
- data/lib/omniauth/strategies/stripe_connect.rb +1 -1
- data/lib/omniauth-stripe-connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2bf24ebcf5c04cbd924c85e104451e1b31ff363
|
4
|
+
data.tar.gz: 6ce956526f0b059aea13ee4c207e38edff64b6d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f2237315286c58f926825665936747f517c3c50c38b8959038c3b388a793f7f7d4a43e3805960ca707ca40374e738e2c24798baaf810833c807de45fa8d1d5f
|
7
|
+
data.tar.gz: 00fbc0b7ba3ef038925c216591aebd659d10459ef8f4b0cd4a21358562fbdfe6c104ff2c0b468c2b349cbf66c17fff62407e086fe6100bd02b12bc93502bf3f4
|
data/README.md
CHANGED
@@ -60,21 +60,6 @@ Then you can hit `/auth/stripe_connect`
|
|
60
60
|
|
61
61
|
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.
|
62
62
|
|
63
|
-
### Ruby on Rails apps with Devise
|
64
|
-
|
65
|
-
After setting up Devise to use OmniAuth, you only need to add the following line of code to handle the OAuth2 part of Stripe Connect. Since this Devise initializer code takes care of OmniAuth, do not use a separate OmniAuth initializer.
|
66
|
-
|
67
|
-
```ruby
|
68
|
-
# Put this in config/initializers/devise.rb with the rest of your Devise configuration
|
69
|
-
config.omniauth :stripe_connect,
|
70
|
-
ENV['STRIPE_CONNECT_CLIENT_ID'],
|
71
|
-
ENV['STRIPE_SECRET_KEY'],
|
72
|
-
:scope => 'read_write', # or :scope => 'read_only'
|
73
|
-
:stripe_landing => 'login' # or :stripe_landing => 'register'
|
74
|
-
```
|
75
|
-
|
76
|
-
Now your done!
|
77
|
-
|
78
63
|
## Auth Hash
|
79
64
|
|
80
65
|
Here is an example of the Auth Hash you get back from calling `request.env['omniauth.auth']`:
|
@@ -104,6 +89,9 @@ Here is an example of the Auth Hash you get back from calling `request.env['omni
|
|
104
89
|
}
|
105
90
|
```
|
106
91
|
|
92
|
+
## Additional Tutorials
|
93
|
+
[Stripe Connect in Rails Tutorial](http://www.munocreative.com/nerd-notes/winvoice)
|
94
|
+
|
107
95
|
## Contributing
|
108
96
|
|
109
97
|
1. Fork it
|
@@ -9,7 +9,7 @@ module OmniAuth
|
|
9
9
|
:site => 'https://connect.stripe.com'
|
10
10
|
}
|
11
11
|
|
12
|
-
option :authorize_options, [:scope, :stripe_landing]
|
12
|
+
option :authorize_options, [:scope, :stripe_landing, :always_prompt]
|
13
13
|
option :provider_ignores_state, true
|
14
14
|
|
15
15
|
uid { raw_info[:stripe_user_id] }
|
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.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Sanders
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|