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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfe87cbb7313b1a3d1c25fa167d6a400b076043eb029b603f201e9c8f2bc06a0
4
- data.tar.gz: 7386c0d5374abd0e310b28bd4a7cca97b0fa71e3a0e66f34d1e650ac16c8c8dc
3
+ metadata.gz: f9e4b37ffe9ea66f041a1780fe3f8cdbb17682407bcc6d7e495af13afd2a1c85
4
+ data.tar.gz: 66c895a42c14a42a7f1185614f0c8a94d3798c3ea78307edcf28da72c534c2a4
5
5
  SHA512:
6
- metadata.gz: 34b17d1e9911b4e262efcddc65b7b3f83e9eda3285ca8a3309d37abb3128b9319c1d35a9666b78bf6401d9d02e1ff89011b3b4d7fcb2278fda9187d9d972a56a
7
- data.tar.gz: ef6276095ef55576545620e9de38098872990a280b9e3c4ea38de48e25755c94dc272b5bce90d04a09c14be6ba758aeb6a141ef5078d7b80d97f3d42f79b852c
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', '~> 1.9'
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'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module OpenIDConnect
5
- VERSION = '0.9.1'.freeze
5
+ VERSION = '0.10.0'
6
6
  end
7
7
  end
@@ -426,6 +426,7 @@ module OmniAuth
426
426
  attr_accessor :error, :error_reason, :error_uri
427
427
 
428
428
  def initialize(data)
429
+ super
429
430
  self.error = data[:error]
430
431
  self.error_reason = data[:reason]
431
432
  self.error_uri = data[:uri]
@@ -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
@@ -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.9.1
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-01-04 00:00:00.000000000 Z
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.2.28
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: