openid_connect 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: 578c7069558b2b2d8de668f316f0282e19f439e0
4
- data.tar.gz: f4231dc452dc98badea4a43df6764d4de4823fb7
3
+ metadata.gz: 167220b01dee03cb231711362435fc72536ab3b5
4
+ data.tar.gz: fc3a10ebc6cbb7168d5351f1f6d1b89edbcdb593
5
5
  SHA512:
6
- metadata.gz: 9f6a3722dfe462d799e874d9218f9e783e8f8f298cba3d686c3fbebe5c35bcd8b25eb124dc6bb4b622b8a4cbfa390ec670409ed99f943573addf3ab5034aabbd
7
- data.tar.gz: d4ac8a152776e4cf5a3190f60b203a7ae2bb4566ee2632da8c4d0e651c4503d90c5acbdcebe88f0035440737f893069d0d37e059dde8af3aa6ce3ece0abd0982
6
+ metadata.gz: 63513942cb1bceff0e91b45a3351dbaef4360d3b22d9a8a59b04c351e3b43ac49749064052a79d5d089bea6132fca4ee01559935152da48517bb1fdaa2fb3504
7
+ data.tar.gz: 3dcba028b7e7dca263d54b51015a8407bde81b80e9f1f8bbda1f85014ff144f9b3a17ee72b409094d157de77db684c7ad6b63ba4d6dc52e1331115339104e081
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -16,6 +16,7 @@ module OpenIDConnect
16
16
  (all_attributes - [:aud, :exp, :iat, :auth_time, :sub_jwk]).each do |key|
17
17
  self.send "#{key}=", self.send(key).try(:to_s)
18
18
  end
19
+ self.auth_time = auth_time.to_i unless auth_time.nil?
19
20
  end
20
21
 
21
22
  def verify!(expected = {})
@@ -20,6 +20,19 @@ describe OpenIDConnect::ResponseObject::IdToken do
20
20
  subject { klass }
21
21
  its(:required_attributes) { should == [:iss, :sub, :aud, :exp, :iat] }
22
22
  its(:optional_attributes) { should == [:acr, :auth_time, :nonce, :sub_jwk, :at_hash, :c_hash] }
23
+
24
+ describe 'auth_time' do
25
+ subject { id_token.auth_time }
26
+
27
+ context 'when Time object given' do
28
+ let(:attributes) do
29
+ required_attributes.merge(auth_time: Time.now)
30
+ end
31
+ it do
32
+ should be_instance_of Integer
33
+ end
34
+ end
35
+ end
23
36
  end
24
37
 
25
38
  describe '#verify!' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openid_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake