openid_connect 1.1.6 → 1.1.7

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: 9e45b59e9c8ee8497e0abfc6d4bef24909ebe88e847d2cb6741a84294263a8a1
4
- data.tar.gz: 64adaed69ac28e6e722562d63e5cd1f94a29a89f78a1faecf3ab8821a3768b2e
3
+ metadata.gz: a6f9c83ea35487cc608778feb29d7434b3ee8f3a325115d39da07a82eec2ea17
4
+ data.tar.gz: 99f58be9da8de7a35cb2ffafb5bb4b83edaac82cbf353f0ace0f8203e3da27cf
5
5
  SHA512:
6
- metadata.gz: 78b735b49e830c6fe4a400ecf33d13bfcd6565bc502313cb5b0496cd80f226133ce989909399e2da1f2f2191039ba47060d89def1517cb832eb613a7bcef464f
7
- data.tar.gz: 30771e6665ecac2029982510f54b3ecae6bf6b030d6624fc7d3d9e115b657cffe890d2d9aaaf6ccde1fed9ecd8fe54105e6f4af3697f8d48a194f51f542341ea
6
+ metadata.gz: 9870720636c14274ea8d96b35022a05faa82bf1c767d8f8a6f52e648adc174f23eaaf58f525d31d8e12801b04ba1b43b452c3680ed996e89d49c601601071f9d
7
+ data.tar.gz: 322bf5c9b6ba9d094b1f8363cf0fffbb01d29ea0288abe96a66c98262abcc83c906075f96821ecc245c378c1ac8b154e73925e0ff996287e152f836850a03958
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.6
1
+ 1.1.7
@@ -8,8 +8,8 @@ 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, :events
12
- attr_accessor :access_token, :code
11
+ attr_optional :acr, :amr, :azp, :jti, :sid, :auth_time, :nonce, :sub_jwk, :at_hash, :c_hash, :s_hash, :events
12
+ attr_accessor :access_token, :code, :state
13
13
  alias_method :subject, :sub
14
14
  alias_method :subject=, :sub=
15
15
 
@@ -49,6 +49,9 @@ module OpenIDConnect
49
49
  if code
50
50
  self.c_hash = left_half_hash_of code, hash_length
51
51
  end
52
+ if state
53
+ self.s_hash = left_half_hash_of state, hash_length
54
+ end
52
55
  super
53
56
  end
54
57
 
@@ -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, :events] }
22
+ its(:optional_attributes) { should == [:acr, :amr, :azp, :jti, :sid, :auth_time, :nonce, :sub_jwk, :at_hash, :c_hash, :s_hash, :events] }
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.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-27 00:00:00.000000000 Z
11
+ date: 2019-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo
@@ -319,8 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  - !ruby/object:Gem::Version
320
320
  version: '0'
321
321
  requirements: []
322
- rubyforge_project:
323
- rubygems_version: 2.7.3
322
+ rubygems_version: 3.0.3
324
323
  signing_key:
325
324
  specification_version: 4
326
325
  summary: OpenID Connect Server & Client Library