omniauth-gocardless-oauth2 1.0.0 → 1.0.1
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 +5 -5
- data/README.md +1 -1
- data/lib/omniauth-gocardless-oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/gocardless.rb +9 -3
- data/omniauth-gocardless-oauth2.gemspec +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a7b46991720fe806b45c04b5fc60a004117d24a246e8963292e13ad81620667d
|
|
4
|
+
data.tar.gz: b47f1b1686dc23ba54b074582f318ede9ac2349c12c698c36aa41f58c47afabc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 894f5ec03ce923408bd518cdd3d4352bdeaae802eaee6eedd4930f0ff2f00aa89d6335e089318fca65b6fc83176499620df422b4c7f27c30ec7999447389d9fa
|
|
7
|
+
data.tar.gz: 15245ffe1a065aed9fe31e354f44036d994bb3c441501757b38e4809793ad09697f0bbd62bee7dd0a99b2405c3edf81c8587a3e036f2f9a09cc37613bdf14ce2
|
data/README.md
CHANGED
|
@@ -26,7 +26,7 @@ end
|
|
|
26
26
|
|
|
27
27
|
## Author
|
|
28
28
|
|
|
29
|
-
- [Jonathan
|
|
29
|
+
- [Jonathan VUKOVICH TRIBOUHARET](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johnvuko))
|
|
30
30
|
|
|
31
31
|
## License
|
|
32
32
|
|
|
@@ -3,10 +3,10 @@ require 'omniauth-oauth2'
|
|
|
3
3
|
module OmniAuth
|
|
4
4
|
module Strategies
|
|
5
5
|
class Gocardless < OmniAuth::Strategies::OAuth2
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
option :name, "gocardless"
|
|
8
8
|
|
|
9
|
-
option :client_options, {
|
|
9
|
+
option :client_options, {
|
|
10
10
|
:site => "https://connect.gocardless.com",
|
|
11
11
|
:authorize_url => '/oauth/authorize',
|
|
12
12
|
:token_url => '/oauth/access_token'
|
|
@@ -14,6 +14,12 @@ module OmniAuth
|
|
|
14
14
|
|
|
15
15
|
uid { access_token.params['organisation_id'] }
|
|
16
16
|
|
|
17
|
+
info do
|
|
18
|
+
{
|
|
19
|
+
email: access_token.params['email']
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
|
|
17
23
|
# Required for omniauth-oauth2 >= 1.4
|
|
18
24
|
# https://github.com/intridea/omniauth-oauth2/issues/81
|
|
19
25
|
def callback_url
|
|
@@ -22,4 +28,4 @@ module OmniAuth
|
|
|
22
28
|
|
|
23
29
|
end
|
|
24
30
|
end
|
|
25
|
-
end
|
|
31
|
+
end
|
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
|
|
|
8
8
|
gem.version = OmniAuth::Gocardless::VERSION
|
|
9
9
|
gem.files = `git ls-files`.split("\n")
|
|
10
10
|
gem.require_paths = ["lib"]
|
|
11
|
-
gem.authors = ['Jonathan TRIBOUHARET']
|
|
11
|
+
gem.authors = ['Jonathan VUKOVICH TRIBOUHARET']
|
|
12
12
|
gem.email = 'jonathan.tribouharet@gmail.com'
|
|
13
13
|
gem.license = 'MIT'
|
|
14
14
|
gem.platform = Gem::Platform::RUBY
|
metadata
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-gocardless-oauth2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Jonathan TRIBOUHARET
|
|
7
|
+
- Jonathan VUKOVICH TRIBOUHARET
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth-oauth2
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '1.4'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.4'
|
|
27
27
|
description: OmniAuth Strategy for GoCardless via OAuth2
|
|
@@ -30,7 +30,7 @@ executables: []
|
|
|
30
30
|
extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
|
32
32
|
files:
|
|
33
|
-
- .gitignore
|
|
33
|
+
- ".gitignore"
|
|
34
34
|
- Gemfile
|
|
35
35
|
- LICENSE.md
|
|
36
36
|
- README.md
|
|
@@ -48,17 +48,17 @@ require_paths:
|
|
|
48
48
|
- lib
|
|
49
49
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
|
-
- -
|
|
51
|
+
- - ">="
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: '0'
|
|
54
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
requirements:
|
|
56
|
-
- -
|
|
56
|
+
- - ">="
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
58
|
version: '0'
|
|
59
59
|
requirements: []
|
|
60
60
|
rubyforge_project:
|
|
61
|
-
rubygems_version: 2.
|
|
61
|
+
rubygems_version: 2.7.7
|
|
62
62
|
signing_key:
|
|
63
63
|
specification_version: 4
|
|
64
64
|
summary: OmniAuth Strategy for GoCardless via OAuth2
|