openid_connect 1.1.8 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +3 -0
- data/.travis.yml +4 -3
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/openid_connect/discovery/provider/config/resource.rb +4 -2
- data/lib/openid_connect/response_object/id_token.rb +1 -1
- data/lib/openid_connect.rb +5 -0
- data/openid_connect.gemspec +7 -0
- data/spec/openid_connect/response_object/id_token_spec.rb +1 -1
- metadata +35 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68649f62e8b9d6137d80e0e02cc0869d27c326ba2d18f8eed01bf48f97c34997
|
4
|
+
data.tar.gz: 9461179696789570d9ebf4c3dc5fe3ddc285fe80ef79f00523263d04b6075f10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4582ef1cb28deaf1251271e2451f02a5350f73183a37d650077cf4fb84fa6135f6ad721c952b0d2266233879cea8362bf61f89f9028c2ab349263953d738cd70
|
7
|
+
data.tar.gz: e0712701dd14a944bb003c17533b62f5f3b0504a0f2db306007ff8001b1444f003a5704604ce9c6ed3dc169fd0c6cc885817d7a974a018bb2a4fd3390baafc39
|
data/.github/FUNDING.yml
ADDED
data/.travis.yml
CHANGED
data/README.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
OpenID Connect Server & Client Library
|
4
4
|
|
5
|
-
{<img src="https://secure.travis-ci.org/nov/openid_connect.png" />}[
|
5
|
+
{<img src="https://secure.travis-ci.org/nov/openid_connect.png" />}[https://travis-ci.org/nov/openid_connect]
|
6
6
|
|
7
7
|
== Installation
|
8
8
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1
|
1
|
+
1.3.1
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "openssl"
|
2
|
+
|
1
3
|
module OpenIDConnect
|
2
4
|
module Discovery
|
3
5
|
module Provider
|
@@ -27,8 +29,8 @@ module OpenIDConnect
|
|
27
29
|
end
|
28
30
|
|
29
31
|
def cache_key
|
30
|
-
|
31
|
-
"swd:resource:opneid-conf:#{
|
32
|
+
sha256 = OpenSSL::Digest::SHA256.hexdigest host
|
33
|
+
"swd:resource:opneid-conf:#{sha256}"
|
32
34
|
end
|
33
35
|
end
|
34
36
|
end
|
@@ -8,7 +8,7 @@ module OpenIDConnect
|
|
8
8
|
class InvalidAudience < InvalidToken; end
|
9
9
|
|
10
10
|
attr_required :iss, :sub, :aud, :exp, :iat
|
11
|
-
attr_optional :acr, :amr, :azp, :jti, :sid, :auth_time, :nonce, :sub_jwk, :at_hash, :c_hash, :s_hash
|
11
|
+
attr_optional :acr, :amr, :azp, :jti, :sid, :auth_time, :nonce, :sub_jwk, :at_hash, :c_hash, :s_hash
|
12
12
|
attr_accessor :access_token, :code, :state
|
13
13
|
alias_method :subject, :sub
|
14
14
|
alias_method :subject=, :sub=
|
data/lib/openid_connect.rb
CHANGED
@@ -67,6 +67,11 @@ module OpenIDConnect
|
|
67
67
|
_http_client_ = HTTPClient.new(
|
68
68
|
agent_name: "OpenIDConnect (#{VERSION})"
|
69
69
|
)
|
70
|
+
|
71
|
+
# NOTE: httpclient gem seems stopped maintaining root certtificate set, use OS default.
|
72
|
+
_http_client_.ssl_config.clear_cert_store
|
73
|
+
_http_client_.ssl_config.cert_store.set_default_paths
|
74
|
+
|
70
75
|
_http_client_.request_filter << Debugger::RequestFilter.new if debugging?
|
71
76
|
http_config.try(:call, _http_client_)
|
72
77
|
_http_client_
|
data/openid_connect.gemspec
CHANGED
@@ -21,9 +21,16 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_runtime_dependency "swd", ">= 1.0.0"
|
22
22
|
s.add_runtime_dependency "webfinger", ">= 1.0.1"
|
23
23
|
s.add_runtime_dependency "rack-oauth2", ">= 1.6.1"
|
24
|
+
if Gem.ruby_version >= Gem::Version.create(3.1)
|
25
|
+
# TODO:
|
26
|
+
# remove "net-smtp" dependency after mail gem 2.8+ (which supports ruby 3.1+) released.
|
27
|
+
# ref.) https://rubygems.org/gems/mailhttps://github.com/mikel/mail
|
28
|
+
s.add_runtime_dependency "net-smtp"
|
29
|
+
end
|
24
30
|
s.add_development_dependency "rake"
|
25
31
|
s.add_development_dependency "rspec"
|
26
32
|
s.add_development_dependency "rspec-its"
|
27
33
|
s.add_development_dependency "webmock"
|
28
34
|
s.add_development_dependency "simplecov"
|
35
|
+
s.add_development_dependency "rexml"
|
29
36
|
end
|
@@ -19,7 +19,7 @@ describe OpenIDConnect::ResponseObject::IdToken do
|
|
19
19
|
describe 'attributes' do
|
20
20
|
subject { klass }
|
21
21
|
its(:required_attributes) { should == [:iss, :sub, :aud, :exp, :iat] }
|
22
|
-
its(:optional_attributes) { should == [:acr, :amr, :azp, :jti, :sid, :auth_time, :nonce, :sub_jwk, :at_hash, :c_hash, :s_hash
|
22
|
+
its(:optional_attributes) { should == [:acr, :amr, :azp, :jti, :sid, :auth_time, :nonce, :sub_jwk, :at_hash, :c_hash, :s_hash] }
|
23
23
|
|
24
24
|
describe 'auth_time' do
|
25
25
|
subject { id_token.auth_time }
|
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.1
|
4
|
+
version: 1.3.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:
|
11
|
+
date: 2022-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzinfo
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 1.6.1
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: net-smtp
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: rake
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,6 +220,20 @@ dependencies:
|
|
206
220
|
- - ">="
|
207
221
|
- !ruby/object:Gem::Version
|
208
222
|
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: rexml
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
209
237
|
description: OpenID Connect Server & Client Library
|
210
238
|
email:
|
211
239
|
- nov@matake.jp
|
@@ -213,6 +241,7 @@ executables: []
|
|
213
241
|
extensions: []
|
214
242
|
extra_rdoc_files: []
|
215
243
|
files:
|
244
|
+
- ".github/FUNDING.yml"
|
216
245
|
- ".gitignore"
|
217
246
|
- ".rspec"
|
218
247
|
- ".travis.yml"
|
@@ -304,7 +333,7 @@ homepage: https://github.com/nov/openid_connect
|
|
304
333
|
licenses:
|
305
334
|
- MIT
|
306
335
|
metadata: {}
|
307
|
-
post_install_message:
|
336
|
+
post_install_message:
|
308
337
|
rdoc_options: []
|
309
338
|
require_paths:
|
310
339
|
- lib
|
@@ -319,8 +348,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
319
348
|
- !ruby/object:Gem::Version
|
320
349
|
version: '0'
|
321
350
|
requirements: []
|
322
|
-
rubygems_version: 3.
|
323
|
-
signing_key:
|
351
|
+
rubygems_version: 3.3.7
|
352
|
+
signing_key:
|
324
353
|
specification_version: 4
|
325
354
|
summary: OpenID Connect Server & Client Library
|
326
355
|
test_files:
|