gitlab-omniauth-openid-connect 0.9.1 → 0.10.1

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: d98c1856aeb81d7e650d36de0d600e4ee4a08544cb999a07d3888b3cdf297d2f
4
+ data.tar.gz: f908956c15c2e59e5a52655df1615d3ac613edd734e34fe884831c2f0e056f9c
5
5
  SHA512:
6
- metadata.gz: 34b17d1e9911b4e262efcddc65b7b3f83e9eda3285ca8a3309d37abb3128b9319c1d35a9666b78bf6401d9d02e1ff89011b3b4d7fcb2278fda9187d9d972a56a
7
- data.tar.gz: ef6276095ef55576545620e9de38098872990a280b9e3c4ea38de48e25755c94dc272b5bce90d04a09c14be6ba758aeb6a141ef5078d7b80d97f3d42f79b852c
6
+ metadata.gz: 396595eea7efb0b26e9c4e34926509c7f84e58a60b8f6d584781d08f8557648b4e747ef515d9a70c0d49ac19afb22e02576a48737183be8aa1f326ba2e56e6d8
7
+ data.tar.gz: 27dacea0bd980a4b25acbc45848b964547db063ee8094b563270daac8f4f6c75bf67f66f2e98655e0af80cc691946b42ee7d56243cf6b092e1ef168112611def
data/.gitlab-ci.yml CHANGED
@@ -10,18 +10,9 @@
10
10
  script:
11
11
  - bundle exec rake test
12
12
 
13
- rspec-2.5:
14
- image: "ruby:2.5"
15
- <<: *test
16
-
17
- rspec-2.6:
18
- image: "ruby:2.6"
19
- <<: *test
20
-
21
- rspec-2.7:
22
- image: "ruby:2.7"
23
- <<: *test
24
-
25
- rspec-3.0:
26
- image: "ruby:3.0"
13
+ rspec:
14
+ image: "ruby:${RUBY_VERSION}"
15
+ parallel:
16
+ matrix:
17
+ - RUBY_VERSION: [ "2.6", "2.7", "3.0", "3.1" ]
27
18
  <<: *test
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # v0.10.1 (24.01.20230)
2
+
3
+ - [Deprecate gem in favor of omniauth_open_id_connect](https://gitlab.com/gitlab-org/ruby/gems/gitlab-omniauth-openid-connect/-/merge_requests/26)
4
+
5
+ # v0.10.0 (05.24.2022)
6
+
7
+ - [Allow Omniauth v2](https:////gitlab.com/gitlab-org/gitlab-omniauth-openid-connect/-/merge_requests/22)
8
+
1
9
  # v0.9.1 (01.03.2022)
2
10
 
3
11
  - [Assume public key encryption unless HMAC is specified](https://gitlab.com/gitlab-org/gitlab-omniauth-openid-connect/-/merge_requests/19)
data/NOTICE ADDED
@@ -0,0 +1,16 @@
1
+ ############################################################
2
+ # Deprecation notice for gitlab-omniauth-openid-connect gem
3
+ ############################################################
4
+
5
+ All changes in this gem are now upstreamed in omniauth_openid_connect
6
+ gem v0.6.0 under the OmniAuth group: https://github.com/omniauth/omniauth_openid_connect.
7
+
8
+ In your Gemfile, replace the line:
9
+
10
+ gem 'gitlab-omniauth-openid-connect', '~> 0.10', require: 'omniauth_openid_connect'
11
+
12
+ With:
13
+
14
+ gem 'omniauth_openid_connect', '~> 0.6'
15
+
16
+ The gitlab-omniauth-openid-connect gem is no longer updated.
@@ -19,10 +19,11 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ['lib']
21
21
 
22
+ spec.post_install_message = File.read('NOTICE') if File.exist?('NOTICE')
23
+
22
24
  spec.add_dependency 'addressable', '~> 2.7'
23
- spec.add_dependency 'omniauth', '~> 1.9'
25
+ spec.add_dependency 'omniauth', '>= 1.9', '< 3'
24
26
  spec.add_dependency 'openid_connect', '~> 1.2'
25
- spec.add_development_dependency 'coveralls', '~> 0.8'
26
27
  spec.add_development_dependency 'faker', '~> 2.17'
27
28
  spec.add_development_dependency 'guard', '~> 2.14'
28
29
  spec.add_development_dependency 'guard-bundler', '~> 3.0'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module OpenIDConnect
5
- VERSION = '0.9.1'.freeze
5
+ VERSION = '0.10.1'
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
data/test/test_helper.rb CHANGED
@@ -2,7 +2,6 @@ lib = File.expand_path('../../lib', __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  require 'simplecov'
5
- require 'coveralls'
6
5
  require 'minitest/autorun'
7
6
  require 'mocha/minitest'
8
7
  require 'faker'
@@ -12,5 +11,4 @@ require_relative 'strategy_test_case'
12
11
 
13
12
  SimpleCov.command_name 'test'
14
13
  SimpleCov.start
15
- Coveralls.wear!
16
14
  OmniAuth.config.test_mode = true
metadata CHANGED
@@ -1,7 +1,7 @@
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bohn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-01-04 00:00:00.000000000 Z
12
+ date: 2023-01-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
@@ -53,20 +59,6 @@ dependencies:
53
59
  - - "~>"
54
60
  - !ruby/object:Gem::Version
55
61
  version: '1.2'
56
- - !ruby/object:Gem::Dependency
57
- name: coveralls
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: '0.8'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '0.8'
70
62
  - !ruby/object:Gem::Dependency
71
63
  name: faker
72
64
  requirement: !ruby/object:Gem::Requirement
@@ -213,6 +205,7 @@ files:
213
205
  - Gemfile
214
206
  - Guardfile
215
207
  - LICENSE.txt
208
+ - NOTICE
216
209
  - README.md
217
210
  - Rakefile
218
211
  - gitlab-omniauth-openid-connect.gemspec
@@ -230,7 +223,23 @@ homepage: https://gitlab.com/gitlab-org/gitlab-omniauth-openid-connect
230
223
  licenses:
231
224
  - MIT
232
225
  metadata: {}
233
- post_install_message:
226
+ post_install_message: |
227
+ ############################################################
228
+ # Deprecation notice for gitlab-omniauth-openid-connect gem
229
+ ############################################################
230
+
231
+ All changes in this gem are now upstreamed in omniauth_openid_connect
232
+ gem v0.6.0 under the OmniAuth group: https://github.com/omniauth/omniauth_openid_connect.
233
+
234
+ In your Gemfile, replace the line:
235
+
236
+ gem 'gitlab-omniauth-openid-connect', '~> 0.10', require: 'omniauth_openid_connect'
237
+
238
+ With:
239
+
240
+ gem 'omniauth_openid_connect', '~> 0.6'
241
+
242
+ The gitlab-omniauth-openid-connect gem is no longer updated.
234
243
  rdoc_options: []
235
244
  require_paths:
236
245
  - lib
@@ -245,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
254
  - !ruby/object:Gem::Version
246
255
  version: '0'
247
256
  requirements: []
248
- rubygems_version: 3.2.28
257
+ rubygems_version: 3.4.5
249
258
  signing_key:
250
259
  specification_version: 4
251
260
  summary: OpenID Connect Strategy for OmniAuth