authlete 1.32.0 → 1.33.0

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: d4792a4186318c1bf3776efeae28c45ddd11dc5d1c73b2e5766bb15e42406d3e
4
- data.tar.gz: ea95479a617e5e6ecef95e8ef9102d7ac6371fcc31956943d63791200b5f53bc
3
+ metadata.gz: ccc118a0411d0f279c37cdf396890204b6dc2945e493e8212e0d79fe4b80f86a
4
+ data.tar.gz: a12839904cbe50b4f779a985b75e66c89d12e12bb6ddafe48549434b749b777e
5
5
  SHA512:
6
- metadata.gz: f53f3a30898b6dedaa7bb4c103640b55d2fbc9895cdd3b34233105b4496d1502e23b3036da8c4d644dd11097f291d79777dfb61b2dfd7373a40340579e9f58da
7
- data.tar.gz: dde70917acb4d54814d3637adc8dafb81a41b71f5840fe95d9e7eb7bb001eb08713b5482cd9a0f997123617beba7722e155091ffd2e9c6be6e2ef1b256f210e1
6
+ metadata.gz: ee57a1108376bccec407dd7c0fa1072fe81504dcc46f9872e1daef051b200c6508e26ee03966a78c5cd7e4dc2a34277ea6ec2935a13d21d29cce4f82eb1ffe7c
7
+ data.tar.gz: b095e4010c3b0890e9b33473fcf745e43b910901e90a9f8aa8b7a7a7e636323c3996de46bfe9e4e8cdec11d0e61c6c86ced93e52d926cabcc748bdece3450a92
@@ -623,6 +623,14 @@ module Authlete
623
623
  alias_method :verified_claims_validation_schema_set, :verifiedClaimsValidationSchemaSet
624
624
  alias_method :verified_claims_validation_schema_set=, :verifiedClaimsValidationSchemaSet=
625
625
 
626
+ attr_accessor :credentialDuration
627
+ alias_method :credential_duration, :credentialDuration
628
+ alias_method :credential_duration=, :credentialDuration=
629
+
630
+ attr_accessor :credentialJwks
631
+ alias_method :credential_jwks, :credentialJwks
632
+ alias_method :credential_jwks=, :credentialJwks=
633
+
626
634
  private
627
635
 
628
636
  def defaults
@@ -781,6 +789,8 @@ module Authlete
781
789
  supportedDocumentsCheckMethods: nil,
782
790
  idTokenAudType: nil,
783
791
  verifiedClaimsValidationSchemaSet: nil,
792
+ credentialDuration: nil,
793
+ credentialJwks: nil,
784
794
  }
785
795
  end
786
796
 
@@ -939,6 +949,8 @@ module Authlete
939
949
  @supportedDocumentsCheckMethods = hash[:supportedDocumentsCheckMethods]
940
950
  @idTokenAudType = hash[:idTokenAudType]
941
951
  @verifiedClaimsValidationSchemaSet = hash[:verifiedClaimsValidationSchemaSet]
952
+ @credentialDuration = hash[:credentialDuration]
953
+ @credentialJwks = hash[:credentialJwks]
942
954
 
943
955
  end
944
956
 
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.32.0"
19
+ VERSION = "1.33.0"
20
20
  end
@@ -199,6 +199,10 @@ class ServiceTest < Minitest::Test
199
199
  ID_TOKEN_AUD_TYPE = '<id-token-aud-type>'
200
200
  VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET = '<verified_claims_validation_schema_set>'
201
201
 
202
+ CREDENTIAL_DURATION = 100
203
+ CREDENTIAL_JWKS = '<credential-duration>'
204
+
205
+
202
206
  def generate_json
203
207
  return <<~JSON
204
208
  {
@@ -355,7 +359,10 @@ class ServiceTest < Minitest::Test
355
359
  "openidDroppedOnRefreshWithoutOfflineAccess": false,
356
360
  "supportedDocumentsCheckMethods": ["supported","documents"],
357
361
  "idTokenAudType": "<id-token-aud-type>",
358
- "verifiedClaimsValidationSchemaSet": "<verified_claims_validation_schema_set>"
362
+ "verifiedClaimsValidationSchemaSet": "<verified_claims_validation_schema_set>",
363
+
364
+ "credentialDuration": 100,
365
+ "credentialJwks": "<credential-duration>"
359
366
  }
360
367
  JSON
361
368
 
@@ -518,7 +525,8 @@ class ServiceTest < Minitest::Test
518
525
  supportedDocumentsCheckMethods: ['supported', 'documents'],
519
526
  idTokenAudType: '<id-token-aud-type>',
520
527
  verifiedClaimsValidationSchemaSet: '<verified_claims_validation_schema_set>',
521
-
528
+ credentialDuration: 100,
529
+ credentialJwks: '<credential-duration>',
522
530
  }
523
531
  end
524
532
 
@@ -676,6 +684,8 @@ class ServiceTest < Minitest::Test
676
684
  obj.supported_documents_check_methods = SUPPORTED_DOCUMENTS_CHECK_METHODS
677
685
  obj.id_token_aud_type = ID_TOKEN_AUD_TYPE
678
686
  obj.verified_claims_validation_schema_set = VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET
687
+ obj.credential_duration = CREDENTIAL_DURATION
688
+ obj.credential_jwks = CREDENTIAL_JWKS
679
689
 
680
690
  end
681
691
 
@@ -849,6 +859,9 @@ class ServiceTest < Minitest::Test
849
859
  assert_equal SUPPORTED_DOCUMENTS_CHECK_METHODS, obj.supported_documents_check_methods
850
860
  assert_equal ID_TOKEN_AUD_TYPE, obj.id_token_aud_type
851
861
  assert_equal VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET, obj.verified_claims_validation_schema_set
862
+ assert_equal CREDENTIAL_DURATION, obj.credentialDuration
863
+ assert_equal CREDENTIAL_JWKS, obj.credentialJwks
864
+
852
865
  end
853
866
 
854
867
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.32.0
4
+ version: 1.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiko Kawasaki
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-04-20 00:00:00.000000000 Z
13
+ date: 2023-06-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client