gitlab-omniauth-openid-connect 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/gitlab-omniauth-openid-connect.gemspec +1 -1
- data/lib/omniauth/openid_connect/version.rb +1 -1
- data/lib/omniauth/strategies/openid_connect.rb +1 -0
- data/test/lib/omniauth/strategies/openid_connect_test.rb +2 -2
- data/test/strategy_test_case.rb +2 -0
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9e4b37ffe9ea66f041a1780fe3f8cdbb17682407bcc6d7e495af13afd2a1c85
|
4
|
+
data.tar.gz: 66c895a42c14a42a7f1185614f0c8a94d3798c3ea78307edcf28da72c534c2a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b83177983d8a47d5343e8ae27600c483057b0cfe352f3443e18354dd04bd8ea780fee62e17082be2933639a4a2dd0adc497b36c45e2ec41a605fe9277dc941a
|
7
|
+
data.tar.gz: 483f85f60b4ffe09ffe23673c0a992f943626053486abb8731091a837788124578dfb07bdd215a865b3304d3a3bd1e6e5de04dfb7e0578cb0245220c4ca1a4f4
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# v0.10.0 (05.24.2022)
|
2
|
+
|
3
|
+
- [Allow Omniauth v2](https:////gitlab.com/gitlab-org/gitlab-omniauth-openid-connect/-/merge_requests/22)
|
4
|
+
|
1
5
|
# v0.9.1 (01.03.2022)
|
2
6
|
|
3
7
|
- [Assume public key encryption unless HMAC is specified](https://gitlab.com/gitlab-org/gitlab-omniauth-openid-connect/-/merge_requests/19)
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
22
|
spec.add_dependency 'addressable', '~> 2.7'
|
23
|
-
spec.add_dependency 'omniauth', '
|
23
|
+
spec.add_dependency 'omniauth', '>= 1.9', '< 3'
|
24
24
|
spec.add_dependency 'openid_connect', '~> 1.2'
|
25
25
|
spec.add_development_dependency 'coveralls', '~> 0.8'
|
26
26
|
spec.add_development_dependency 'faker', '~> 2.17'
|
@@ -36,7 +36,7 @@ module OmniAuth
|
|
36
36
|
::OpenIDConnect::Discovery::Provider::Config.stubs(:discover!).with('https://example.com/').returns(config)
|
37
37
|
|
38
38
|
request.stubs(:path_info).returns('/auth/openid_connect/logout')
|
39
|
-
|
39
|
+
request.stubs(:path).returns('/auth/openid_connect/logout')
|
40
40
|
strategy.expects(:redirect).with(regexp_matches(expected_redirect))
|
41
41
|
strategy.other_phase
|
42
42
|
end
|
@@ -60,7 +60,7 @@ module OmniAuth
|
|
60
60
|
::OpenIDConnect::Discovery::Provider::Config.stubs(:discover!).with('https://example.com/').returns(config)
|
61
61
|
|
62
62
|
request.stubs(:path_info).returns('/auth/openid_connect/logout')
|
63
|
-
|
63
|
+
request.stubs(:path).returns('/auth/openid_connect/logout')
|
64
64
|
strategy.expects(:redirect).with(expected_redirect)
|
65
65
|
strategy.other_phase
|
66
66
|
end
|
data/test/strategy_test_case.rb
CHANGED
@@ -75,6 +75,7 @@ class StrategyTestCase < MiniTest::Test
|
|
75
75
|
request.stubs(:env).returns({})
|
76
76
|
request.stubs(:scheme).returns({})
|
77
77
|
request.stubs(:ssl?).returns(false)
|
78
|
+
request.stubs(:path).returns('')
|
78
79
|
end
|
79
80
|
end
|
80
81
|
|
@@ -84,6 +85,7 @@ class StrategyTestCase < MiniTest::Test
|
|
84
85
|
strategy.options.client_options.secret = @secret
|
85
86
|
strategy.stubs(:request).returns(request)
|
86
87
|
strategy.stubs(:user_info).returns(user_info)
|
88
|
+
strategy.stubs(:script_name).returns('')
|
87
89
|
end
|
88
90
|
end
|
89
91
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-omniauth-openid-connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bohn
|
8
8
|
- Ilya Shcherbinin
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|
@@ -29,16 +29,22 @@ dependencies:
|
|
29
29
|
name: omniauth
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '1.9'
|
35
|
+
- - "<"
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '3'
|
35
38
|
type: :runtime
|
36
39
|
prerelease: false
|
37
40
|
version_requirements: !ruby/object:Gem::Requirement
|
38
41
|
requirements:
|
39
|
-
- - "
|
42
|
+
- - ">="
|
40
43
|
- !ruby/object:Gem::Version
|
41
44
|
version: '1.9'
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3'
|
42
48
|
- !ruby/object:Gem::Dependency
|
43
49
|
name: openid_connect
|
44
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,7 +236,7 @@ homepage: https://gitlab.com/gitlab-org/gitlab-omniauth-openid-connect
|
|
230
236
|
licenses:
|
231
237
|
- MIT
|
232
238
|
metadata: {}
|
233
|
-
post_install_message:
|
239
|
+
post_install_message:
|
234
240
|
rdoc_options: []
|
235
241
|
require_paths:
|
236
242
|
- lib
|
@@ -245,8 +251,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
251
|
- !ruby/object:Gem::Version
|
246
252
|
version: '0'
|
247
253
|
requirements: []
|
248
|
-
rubygems_version: 3.
|
249
|
-
signing_key:
|
254
|
+
rubygems_version: 3.1.6
|
255
|
+
signing_key:
|
250
256
|
specification_version: 4
|
251
257
|
summary: OpenID Connect Strategy for OmniAuth
|
252
258
|
test_files:
|