openid_connect 1.1.8 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9df340e250fc573e0e6d35fea8f1b8e05da3cc24bc52b451106c80f3658af158
4
- data.tar.gz: 5ceb6754cf1d7242b1e66048adc00a4d227e7ee5d2573836988e48820b2ea651
3
+ metadata.gz: af18f051ad8706af86b3a01339d327641a1a8c8b4a96ad534621b6367d6cdab9
4
+ data.tar.gz: 52ec65238c94709181031e7690fc477c26efa2b47ce18901caf28cf8ba882070
5
5
  SHA512:
6
- metadata.gz: 875733e0833a1a5c5edea88891025ab142cc5dc9af07d1bd56f6a5b543227de69d358e0774b6f268883571d72e03ad1d5c3e7b26fade37dc6acd64ee2248d0c2
7
- data.tar.gz: d5c5092d6698e6baef8131a9bd7186b537886e8d9267bde94fd7afbc19a3203fe69133a3008d94a4b2f63f52e7a48b17bcc415179fad326e225a07335d60ef7d
6
+ metadata.gz: 22b3b2306d71c0db24b60f292c84f67b920327164368c0f7c3a4b6e95a61e0c4616800cdf2344d6407871f2e3d7ff50230e44b1bf2b697dc6f962d3019233a4c
7
+ data.tar.gz: 530d6b1c00a39250e676a0e78fd2b0b2fe5a1ee5596aec0f9a14ad723610210a1d658810d3f623a60cf1b8c3a558280d8bc2e72cfa5378070a897d53a89b48a9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.8
1
+ 1.2.0
@@ -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
- md5 = Digest::MD5.hexdigest host
31
- "swd:resource:opneid-conf:#{md5}"
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, :events
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=
@@ -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, :events] }
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.8
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-27 00:00:00.000000000 Z
11
+ date: 2020-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo