omniauth-stripe-connect 2.7.0 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/lib/omniauth-stripe-connect/version.rb +1 -1
- data/lib/omniauth/strategies/stripe_connect.rb +1 -1
- data/omniauth-stripe-connect.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5812a80e945ea17ca277e5f2ce376d6efd169be
|
4
|
+
data.tar.gz: ba24054396a6817f90c7aefb449a13d4d55abb68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a54f3c66caf753300e596680ad2b0ecc4a731ecc16b8d7aac52cde8ec40a1092448937b4d8ebfb93a9fe24512f217a29fc0dc0bcdb55e11b742847d971a9fb1f
|
7
|
+
data.tar.gz: bcd8ffedafe26ce7cfa665217eaaf842f5943e89b333b12ae41d4c46bd3d44b26d6ccb896a772f1b6b7c1ae52df2c7b429da62221a66cfe0f242ef39410bb563
|
data/README.md
CHANGED
@@ -24,6 +24,7 @@ Or install it yourself as:
|
|
24
24
|
OmniAuth::Strategies::StripeConnect is simply a Rack middleware. Read the OmniAuth
|
25
25
|
1.0 docs for detailed instructions: https://github.com/intridea/omniauth.
|
26
26
|
|
27
|
+
### Non-Devise
|
27
28
|
Here's a quick example, adding the middleware to a Rails app in
|
28
29
|
`config/initializers/omniauth.rb`:
|
29
30
|
|
@@ -33,6 +34,16 @@ Rails.application.config.middleware.use OmniAuth::Builder do
|
|
33
34
|
end
|
34
35
|
```
|
35
36
|
|
37
|
+
### Devise
|
38
|
+
|
39
|
+
You need to declare the provider in your `config/initializers/devise.rb`:
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
config.omniauth :stripe_connect, "STRIPE_CONNECT_CLIENT_ID", "STRIPE_SECRET"
|
43
|
+
```
|
44
|
+
|
45
|
+
### General Usage
|
46
|
+
|
36
47
|
Your `STRIPE_CONNECT_CLIENT_ID` is application-specific and your `STRIPE_SECRET` is account-specific and may also be known as your Stripe API key or Stripe Private key.
|
37
48
|
|
38
49
|
Edit your routes.rb file to have:
|
@@ -19,5 +19,5 @@ Read the Stripe Connect docs for more details: https://stripe.com/docs/connect
|
|
19
19
|
gem.version = OmniAuth::StripeConnect::VERSION
|
20
20
|
|
21
21
|
gem.add_dependency 'omniauth', '~> 1.0'
|
22
|
-
gem.add_dependency 'omniauth-oauth2', '~> 1.
|
22
|
+
gem.add_dependency 'omniauth-oauth2', '~> 1.3.1'
|
23
23
|
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.
|
4
|
+
version: 2.8.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: 2015-03
|
11
|
+
date: 2015-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.3.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.3.1
|
41
41
|
description: Stripe Connect OAuth2 Strategy for OmniAuth 1.0.
|
42
42
|
email:
|
43
43
|
- isaac@isaacbfsanders.com
|