openid_connect 1.1.6 → 1.1.7
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6f9c83ea35487cc608778feb29d7434b3ee8f3a325115d39da07a82eec2ea17
|
|
4
|
+
data.tar.gz: 99f58be9da8de7a35cb2ffafb5bb4b83edaac82cbf353f0ace0f8203e3da27cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9870720636c14274ea8d96b35022a05faa82bf1c767d8f8a6f52e648adc174f23eaaf58f525d31d8e12801b04ba1b43b452c3680ed996e89d49c601601071f9d
|
|
7
|
+
data.tar.gz: 322bf5c9b6ba9d094b1f8363cf0fffbb01d29ea0288abe96a66c98262abcc83c906075f96821ecc245c378c1ac8b154e73925e0ff996287e152f836850a03958
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
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.
|
|
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:
|
|
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
|
-
|
|
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
|