openid_connect 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/spec.yml +2 -0
- data/VERSION +1 -1
- data/openid_connect.gemspec +2 -2
- data/spec/openid_connect/response_object/id_token_spec.rb +27 -8
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f4e8de191efd7426d6b4d5a3e9c4e57dc399c9e48bd8d4e910be7b89d53bbe1
|
4
|
+
data.tar.gz: db44e34ed0528686cbb34c17b75d49c8996e220412ab465aaa586d34622e96c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f3b5acbf0a4f2fa13506923ccb4f6bfa2f6b681cba2126c638484fd5d4c77076e46eb67f01bbcf4d7fe6ec03ff444c433fc74529736efc720073ecbc16c1094
|
7
|
+
data.tar.gz: eb50dc206ea94bb518dd0a7db1e22baa622a76ebce2bda1f4064379002f0cb230fcbbca6233853c041c259439773fe2eacb61299fbeb80bb054796b462ac9a18
|
data/.github/workflows/spec.yml
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.1
|
data/openid_connect.gemspec
CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.add_runtime_dependency "validate_url"
|
19
19
|
s.add_runtime_dependency "validate_email"
|
20
20
|
s.add_runtime_dependency "json-jwt", ">= 1.15.0"
|
21
|
-
s.add_runtime_dependency "swd", "
|
22
|
-
s.add_runtime_dependency "webfinger", "
|
21
|
+
s.add_runtime_dependency "swd", "~> 1.3"
|
22
|
+
s.add_runtime_dependency "webfinger", "~> 1.2"
|
23
23
|
s.add_runtime_dependency "rack-oauth2", ">= 1.6.1"
|
24
24
|
if Gem.ruby_version >= Gem::Version.create(3.1)
|
25
25
|
# TODO:
|
@@ -257,11 +257,6 @@ describe OpenIDConnect::ResponseObject::IdToken do
|
|
257
257
|
jwk_str = File.read(File.join(__dir__, '../../mock_response/public_keys/jwks_with_private_key.json'))
|
258
258
|
jwk = JSON::JWK::Set.new JSON.parse(jwk_str)
|
259
259
|
end
|
260
|
-
let(:private_key) do
|
261
|
-
OpenSSL::PKey::RSA.new(
|
262
|
-
File.read(File.join(__dir__, '../../mock_response/public_keys/private_key.pem'))
|
263
|
-
).to_jwk
|
264
|
-
end
|
265
260
|
let(:idp_config) do
|
266
261
|
OpenIDConnect::Discovery::Provider::Config::Response.new(
|
267
262
|
issuer: attributes[:issuer],
|
@@ -273,9 +268,33 @@ describe OpenIDConnect::ResponseObject::IdToken do
|
|
273
268
|
)
|
274
269
|
end
|
275
270
|
|
276
|
-
|
277
|
-
|
278
|
-
|
271
|
+
context 'when id_token has kid' do
|
272
|
+
let(:private_key) do
|
273
|
+
OpenSSL::PKey::RSA.new(
|
274
|
+
File.read(File.join(__dir__, '../../mock_response/public_keys/private_key.pem'))
|
275
|
+
).to_jwk
|
276
|
+
end
|
277
|
+
|
278
|
+
it do
|
279
|
+
mock_json :get, idp_config.jwks_uri, 'public_keys/jwks_with_private_key' do
|
280
|
+
should be_a klass
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
context 'otherwise' do
|
286
|
+
let(:private_key) do
|
287
|
+
OpenSSL::PKey::RSA.new(
|
288
|
+
File.read(File.join(__dir__, '../../mock_response/public_keys/private_key.pem'))
|
289
|
+
)
|
290
|
+
end
|
291
|
+
|
292
|
+
it do
|
293
|
+
mock_json :get, idp_config.jwks_uri, 'public_keys/jwks_with_private_key' do
|
294
|
+
expect do
|
295
|
+
should
|
296
|
+
end.to raise_error JSON::JWK::Set::KidNotFound
|
297
|
+
end
|
279
298
|
end
|
280
299
|
end
|
281
300
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openid_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzinfo
|
@@ -98,30 +98,30 @@ dependencies:
|
|
98
98
|
name: swd
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: '1.3'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: '1.3'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: webfinger
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: '1.2'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: '1.2'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rack-oauth2
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -321,7 +321,7 @@ homepage: https://github.com/nov/openid_connect
|
|
321
321
|
licenses:
|
322
322
|
- MIT
|
323
323
|
metadata: {}
|
324
|
-
post_install_message:
|
324
|
+
post_install_message:
|
325
325
|
rdoc_options: []
|
326
326
|
require_paths:
|
327
327
|
- lib
|
@@ -336,8 +336,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
336
336
|
- !ruby/object:Gem::Version
|
337
337
|
version: '0'
|
338
338
|
requirements: []
|
339
|
-
rubygems_version: 3.
|
340
|
-
signing_key:
|
339
|
+
rubygems_version: 3.1.6
|
340
|
+
signing_key:
|
341
341
|
specification_version: 4
|
342
342
|
summary: OpenID Connect Server & Client Library
|
343
343
|
test_files:
|