omniauth-infusionsoft 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -7
- data/lib/omniauth/infusionsoft/version.rb +1 -1
- data/lib/omniauth/strategies/infusionsoft.rb +6 -1
- data/omniauth-infusionsoft.gemspec +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c43306b9ab2ccd01dd3a98e9fa95877299c7c47
|
4
|
+
data.tar.gz: 4f057220aa574fcb42f578a00fa436d8bda80343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cfeafefd1a543c3246367dbd73c7394e55ba05636cbbaf6695acc37202a1bc63c9d1be9fff2927b12983f2f226a6a53ef8a8a4cf82c889305761b7da1499d37
|
7
|
+
data.tar.gz: e698cae5d2fc318bae955881407bba5864958dbeb5778218a45fd651b1f7a19d2534bcc50a65cb4c9602d03c71f6d45c931438a3f99bd901d34fcf06f298c991
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth-infusionsoft (1.0.
|
5
|
-
omniauth (~> 1.
|
4
|
+
omniauth-infusionsoft (1.0.4)
|
5
|
+
omniauth (~> 1.3, >= 1.3.2)
|
6
6
|
omniauth-oauth2 (~> 1.1)
|
7
7
|
|
8
8
|
GEM
|
@@ -11,9 +11,9 @@ GEM
|
|
11
11
|
diff-lcs (1.2.5)
|
12
12
|
faraday (0.9.2)
|
13
13
|
multipart-post (>= 1.2, < 3)
|
14
|
-
hashie (3.
|
14
|
+
hashie (3.5.7)
|
15
15
|
jwt (1.5.2)
|
16
|
-
multi_json (1.
|
16
|
+
multi_json (1.12.2)
|
17
17
|
multi_xml (0.5.5)
|
18
18
|
multipart-post (2.0.0)
|
19
19
|
oauth2 (1.0.0)
|
@@ -22,13 +22,13 @@ GEM
|
|
22
22
|
multi_json (~> 1.3)
|
23
23
|
multi_xml (~> 0.5)
|
24
24
|
rack (~> 1.2)
|
25
|
-
omniauth (1.
|
25
|
+
omniauth (1.3.2)
|
26
26
|
hashie (>= 1.2, < 4)
|
27
|
-
rack (
|
27
|
+
rack (>= 1.0, < 3)
|
28
28
|
omniauth-oauth2 (1.4.0)
|
29
29
|
oauth2 (~> 1.0)
|
30
30
|
omniauth (~> 1.2)
|
31
|
-
rack (1.6.
|
31
|
+
rack (1.6.9)
|
32
32
|
rake (10.3.2)
|
33
33
|
rspec (3.1.0)
|
34
34
|
rspec-core (~> 3.1.0)
|
@@ -51,3 +51,6 @@ DEPENDENCIES
|
|
51
51
|
omniauth-infusionsoft!
|
52
52
|
rake (~> 10.3)
|
53
53
|
rspec (~> 3.0)
|
54
|
+
|
55
|
+
BUNDLED WITH
|
56
|
+
1.15.4
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'omniauth-oauth2'
|
2
|
+
require 'resolv'
|
2
3
|
|
3
4
|
module OmniAuth
|
4
5
|
module Strategies
|
@@ -22,11 +23,15 @@ module OmniAuth
|
|
22
23
|
uri.path = ''
|
23
24
|
uri.query = nil
|
24
25
|
#infusionsoft requires https for callback urls
|
25
|
-
|
26
|
+
#force ssl for all hosts except: 127.x.x.x, fe80:: and ::1
|
27
|
+
uri.scheme = 'https' unless Resolv.getaddress(uri.host) =~ /^(fe80::|127|::1)/
|
26
28
|
uri.to_s
|
27
29
|
end
|
28
30
|
end
|
29
31
|
|
32
|
+
def callback_url
|
33
|
+
full_host + script_name + callback_path
|
34
|
+
end
|
30
35
|
end
|
31
36
|
end
|
32
37
|
end
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
|
18
18
|
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
|
19
19
|
|
20
|
-
gem.add_runtime_dependency 'omniauth', '~> 1.
|
20
|
+
gem.add_runtime_dependency 'omniauth', '~> 1.3', '>= 1.3.2'
|
21
21
|
gem.add_runtime_dependency 'omniauth-oauth2', '~> 1.1'
|
22
22
|
|
23
23
|
gem.add_development_dependency 'bundler', '~> 1.5'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-infusionsoft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Devin Turner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.3'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.3.2
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
29
|
+
version: '1.3'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.3.2
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: omniauth-oauth2
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
127
|
version: 1.3.6
|
122
128
|
requirements: []
|
123
129
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.6.13
|
125
131
|
signing_key:
|
126
132
|
specification_version: 4
|
127
133
|
summary: An Infusionsoft OAuth2 strategy for OmniAuth
|