omniauth-osso 0.1.8.pre → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +29 -22
- data/lib/omniauth-osso/version.rb +1 -1
- data/omniauth-osso.gemspec +1 -0
- data/spec/omniauth/strategies/osso_spec.rb +2 -3
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56e18431f00e10031a36b55c2ebc0fbb472b27fb98cc794bd0925a80bd6a85f4
|
4
|
+
data.tar.gz: 9cf0b3999072a6cceb1ff764cb3c55d5f0c16d0dd122f24c1b8fee6c92eb29d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26ac30a6016727d1a97bcd3c2b6a49911da1b044487fb626b111586552e9ccf4cd8dd30b2866e3c4bc84ceb7218fb6200a745ffcc4e34ad906105029a24f16a6
|
7
|
+
data.tar.gz: 92dc68770cc6445875a73375b02f5bc56704630ba735635d97b686476cdf80ad1cbb87a77cbcb030b4cb5c1a8e65a7b0bdc854de6bb3723b3c3fd2decd44d7aa
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth-osso (0.1.
|
4
|
+
omniauth-osso (0.1.8.pre)
|
5
|
+
omniauth (~> 2.0.1)
|
5
6
|
omniauth-oauth2 (>= 1.6, < 1.8)
|
6
7
|
|
7
8
|
GEM
|
@@ -9,13 +10,16 @@ GEM
|
|
9
10
|
specs:
|
10
11
|
addressable (2.7.0)
|
11
12
|
public_suffix (>= 2.0.2, < 5.0)
|
12
|
-
ast (2.4.
|
13
|
+
ast (2.4.2)
|
13
14
|
coderay (1.1.3)
|
14
|
-
crack (0.4.
|
15
|
+
crack (0.4.5)
|
16
|
+
rexml
|
15
17
|
diff-lcs (1.4.4)
|
16
|
-
faraday (1.
|
18
|
+
faraday (1.3.0)
|
19
|
+
faraday-net_http (~> 1.0)
|
17
20
|
multipart-post (>= 1.2, < 3)
|
18
21
|
ruby2_keywords
|
22
|
+
faraday-net_http (1.0.1)
|
19
23
|
hashdiff (1.0.1)
|
20
24
|
hashie (4.1.0)
|
21
25
|
jwt (2.2.2)
|
@@ -29,53 +33,56 @@ GEM
|
|
29
33
|
multi_json (~> 1.3)
|
30
34
|
multi_xml (~> 0.5)
|
31
35
|
rack (>= 1.2, < 3)
|
32
|
-
omniauth (
|
36
|
+
omniauth (2.0.1)
|
33
37
|
hashie (>= 3.4.6)
|
34
38
|
rack (>= 1.6.2, < 3)
|
35
|
-
|
39
|
+
rack-protection
|
40
|
+
omniauth-oauth2 (1.7.1)
|
36
41
|
oauth2 (~> 1.4)
|
37
|
-
omniauth (
|
42
|
+
omniauth (>= 1.9, < 3)
|
38
43
|
parallel (1.20.1)
|
39
|
-
parser (
|
44
|
+
parser (3.0.0.0)
|
40
45
|
ast (~> 2.4.1)
|
41
46
|
pry (0.13.1)
|
42
47
|
coderay (~> 1.1)
|
43
48
|
method_source (~> 1.0)
|
44
49
|
public_suffix (4.0.6)
|
45
50
|
rack (2.2.3)
|
51
|
+
rack-protection (2.1.0)
|
52
|
+
rack
|
46
53
|
rack-test (1.1.0)
|
47
54
|
rack (>= 1.0, < 3)
|
48
55
|
rainbow (3.0.0)
|
49
|
-
regexp_parser (2.0.
|
56
|
+
regexp_parser (2.0.3)
|
50
57
|
rexml (3.2.4)
|
51
58
|
rspec (3.10.0)
|
52
59
|
rspec-core (~> 3.10.0)
|
53
60
|
rspec-expectations (~> 3.10.0)
|
54
61
|
rspec-mocks (~> 3.10.0)
|
55
|
-
rspec-core (3.10.
|
62
|
+
rspec-core (3.10.1)
|
56
63
|
rspec-support (~> 3.10.0)
|
57
|
-
rspec-expectations (3.10.
|
64
|
+
rspec-expectations (3.10.1)
|
58
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
59
66
|
rspec-support (~> 3.10.0)
|
60
|
-
rspec-mocks (3.10.
|
67
|
+
rspec-mocks (3.10.1)
|
61
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
62
69
|
rspec-support (~> 3.10.0)
|
63
|
-
rspec-support (3.10.
|
64
|
-
rubocop (1.
|
70
|
+
rspec-support (3.10.1)
|
71
|
+
rubocop (1.8.1)
|
65
72
|
parallel (~> 1.10)
|
66
|
-
parser (>=
|
73
|
+
parser (>= 3.0.0.0)
|
67
74
|
rainbow (>= 2.2.2, < 4.0)
|
68
75
|
regexp_parser (>= 1.8, < 3.0)
|
69
76
|
rexml
|
70
77
|
rubocop-ast (>= 1.2.0, < 2.0)
|
71
78
|
ruby-progressbar (~> 1.7)
|
72
|
-
unicode-display_width (>= 1.4.0, <
|
73
|
-
rubocop-ast (1.
|
79
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
80
|
+
rubocop-ast (1.4.1)
|
74
81
|
parser (>= 2.7.1.5)
|
75
|
-
ruby-progressbar (1.
|
76
|
-
ruby2_keywords (0.0.
|
77
|
-
unicode-display_width (
|
78
|
-
webmock (3.
|
82
|
+
ruby-progressbar (1.11.0)
|
83
|
+
ruby2_keywords (0.0.4)
|
84
|
+
unicode-display_width (2.0.0)
|
85
|
+
webmock (3.11.1)
|
79
86
|
addressable (>= 2.3.6)
|
80
87
|
crack (>= 0.3.2)
|
81
88
|
hashdiff (>= 0.4.0, < 2.0.0)
|
@@ -90,7 +97,7 @@ DEPENDENCIES
|
|
90
97
|
rack-test
|
91
98
|
rspec (~> 3.10)
|
92
99
|
rubocop
|
93
|
-
webmock (~> 3.
|
100
|
+
webmock (~> 3.11)
|
94
101
|
|
95
102
|
BUNDLED WITH
|
96
103
|
2.1.4
|
data/omniauth-osso.gemspec
CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.homepage = 'https://github.com/enterprise-oss/omniauth-osso'
|
11
11
|
gem.license = 'BSL'
|
12
12
|
|
13
|
+
gem.add_dependency 'omniauth', '~> 2.0.1'
|
13
14
|
gem.add_dependency 'omniauth-oauth2', '>= 1.6', '< 1.8'
|
14
15
|
gem.add_development_dependency 'bundler', '~> 2.1'
|
15
16
|
|
@@ -62,6 +62,7 @@ describe OmniAuth::Strategies::Osso do
|
|
62
62
|
|
63
63
|
it 'includes domain passed as a request param' do
|
64
64
|
instance = subject.new('abc', 'def')
|
65
|
+
instance.env = {}
|
65
66
|
allow(instance).to receive(:request) do
|
66
67
|
double('Request', params: { 'domain' => 'example.com' }, scheme: 'https', url: url)
|
67
68
|
end
|
@@ -71,11 +72,10 @@ describe OmniAuth::Strategies::Osso do
|
|
71
72
|
|
72
73
|
it 'includes email when an email address is passed as an authorize option' do
|
73
74
|
instance = subject.new('abc', 'def')
|
74
|
-
|
75
|
+
instance.env = {}
|
75
76
|
allow(instance).to receive(:request) do
|
76
77
|
double('Request', params: { 'email' => 'user@example.com' }, scheme: 'https', url: url)
|
77
78
|
end
|
78
|
-
|
79
79
|
expect(instance.request_params[:email]).to eq('user@example.com')
|
80
80
|
end
|
81
81
|
end
|
@@ -129,7 +129,6 @@ describe OmniAuth::Strategies::Osso do
|
|
129
129
|
end
|
130
130
|
|
131
131
|
it 'calls fail with the client error received' do
|
132
|
-
instance = subject.new('abc', 'def')
|
133
132
|
allow(instance).to receive(:request) do
|
134
133
|
double('Request', params: { 'error_reason' => 'user_denied', 'error' => 'access_denied' })
|
135
134
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-osso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Bauch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: omniauth
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.0.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.0.1
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: omniauth-oauth2
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,9 +106,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
106
|
version: '2.4'
|
93
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
108
|
requirements:
|
95
|
-
- - "
|
109
|
+
- - ">="
|
96
110
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
111
|
+
version: '0'
|
98
112
|
requirements: []
|
99
113
|
rubygems_version: 3.0.3
|
100
114
|
signing_key:
|