omniauth-gocardless 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -1
- data/README.md +2 -2
- data/lib/omniauth/gocardless/version.rb +1 -1
- data/lib/omniauth/strategies/gocardless.rb +2 -2
- metadata +8 -4
- data/Gemfile.lock +0 -38
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -29,10 +29,10 @@ To authorize against your gocardless sandbox environment set the site url to `ht
|
|
29
29
|
client_options: {site: 'https://sandbox.gocardless.com'}
|
30
30
|
end
|
31
31
|
|
32
|
-
To set a
|
32
|
+
To set a callback host e.g. if you call from different subdomains you can set it like this:
|
33
33
|
|
34
34
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
35
35
|
provider :gocardless, '<client_id>', '<client_secret>', scope: 'manage_merchant',
|
36
|
-
|
36
|
+
callback_host: 'https://www.cobot.me'
|
37
37
|
end
|
38
38
|
|
@@ -3,7 +3,7 @@ module OmniAuth
|
|
3
3
|
module Strategies
|
4
4
|
class Gocardless < OmniAuth::Strategies::OAuth2
|
5
5
|
option :name, 'gocardless'
|
6
|
-
option :
|
6
|
+
option :callback_host, nil
|
7
7
|
option :client_options, {
|
8
8
|
:site => 'https://gocardless.com',
|
9
9
|
:authorize_url => '/oauth/authorize',
|
@@ -27,7 +27,7 @@ module OmniAuth
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def callback_url
|
30
|
-
options[:
|
30
|
+
(options[:callback_host] || full_host) + script_name + callback_path
|
31
31
|
end
|
32
32
|
|
33
33
|
def raw_info
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-gocardless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
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: 2013-03-
|
12
|
+
date: 2013-03-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth-oauth2
|
@@ -51,7 +51,6 @@ extra_rdoc_files: []
|
|
51
51
|
files:
|
52
52
|
- .gitignore
|
53
53
|
- Gemfile
|
54
|
-
- Gemfile.lock
|
55
54
|
- MIT_LICENSE.txt
|
56
55
|
- README.md
|
57
56
|
- Rakefile
|
@@ -71,12 +70,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
70
|
- - ! '>='
|
72
71
|
- !ruby/object:Gem::Version
|
73
72
|
version: '0'
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
hash: 1862944291817077566
|
74
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
77
|
none: false
|
76
78
|
requirements:
|
77
79
|
- - ! '>='
|
78
80
|
- !ruby/object:Gem::Version
|
79
81
|
version: '0'
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
hash: 1862944291817077566
|
80
85
|
requirements: []
|
81
86
|
rubyforge_project:
|
82
87
|
rubygems_version: 1.8.23
|
@@ -84,4 +89,3 @@ signing_key:
|
|
84
89
|
specification_version: 3
|
85
90
|
summary: OmniAuth strategy for GoCardless
|
86
91
|
test_files: []
|
87
|
-
has_rdoc:
|
data/Gemfile.lock
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
omniauth-gocardless (1.0.0)
|
5
|
-
omniauth-oauth2
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: http://rubygems.org/
|
9
|
-
specs:
|
10
|
-
faraday (0.8.6)
|
11
|
-
multipart-post (~> 1.1)
|
12
|
-
hashie (1.2.0)
|
13
|
-
httpauth (0.2.0)
|
14
|
-
jwt (0.1.5)
|
15
|
-
multi_json (>= 1.0)
|
16
|
-
multi_json (1.6.1)
|
17
|
-
multipart-post (1.2.0)
|
18
|
-
oauth2 (0.8.1)
|
19
|
-
faraday (~> 0.8)
|
20
|
-
httpauth (~> 0.1)
|
21
|
-
jwt (~> 0.1.4)
|
22
|
-
multi_json (~> 1.0)
|
23
|
-
rack (~> 1.2)
|
24
|
-
omniauth (1.1.3)
|
25
|
-
hashie (~> 1.2)
|
26
|
-
rack
|
27
|
-
omniauth-oauth2 (1.1.1)
|
28
|
-
oauth2 (~> 0.8.0)
|
29
|
-
omniauth (~> 1.0)
|
30
|
-
rack (1.5.2)
|
31
|
-
rake (10.0.3)
|
32
|
-
|
33
|
-
PLATFORMS
|
34
|
-
ruby
|
35
|
-
|
36
|
-
DEPENDENCIES
|
37
|
-
omniauth-gocardless!
|
38
|
-
rake
|