authlete 1.32.0 → 1.34.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: 743cfaab122222d1e9d7cf0f2a741371be4ac37a38bad1648c6b25dc6a108282
4
+ data.tar.gz: c228a13fa5bb3434ecb16576e501d9700edb749a24234e64afc070fcf80bca85
5
5
  SHA512:
6
- metadata.gz: f53f3a30898b6dedaa7bb4c103640b55d2fbc9895cdd3b34233105b4496d1502e23b3036da8c4d644dd11097f291d79777dfb61b2dfd7373a40340579e9f58da
7
- data.tar.gz: dde70917acb4d54814d3637adc8dafb81a41b71f5840fe95d9e7eb7bb001eb08713b5482cd9a0f997123617beba7722e155091ffd2e9c6be6e2ef1b256f210e1
6
+ metadata.gz: 900944ea4585b1f5dbd777ecf4a5a3fd1cd0bb04037ba4370e5004a2beda5fd69329da18f193708acc74554ec6dbb4507f3af0242633536c1a64be1bd1ddeee9
7
+ data.tar.gz: ebe494f292a59d11026388deac9bbca62aa7ed733ab0e5358b91c8627dcdd1f441721a60edbaa5173d9bffcc5f7b21d0360a037d03b3ef4fccde09a26379f26b
@@ -623,6 +623,18 @@ 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
+
634
+ attr_accessor :idTokenReissuable
635
+ alias_method :id_token_reissuable, :idTokenReissuable
636
+ alias_method :id_token_reissuable=, :idTokenReissuable=
637
+
626
638
  private
627
639
 
628
640
  def defaults
@@ -781,6 +793,9 @@ module Authlete
781
793
  supportedDocumentsCheckMethods: nil,
782
794
  idTokenAudType: nil,
783
795
  verifiedClaimsValidationSchemaSet: nil,
796
+ credentialDuration: nil,
797
+ credentialJwks: nil,
798
+ idTokenReissuable: false,
784
799
  }
785
800
  end
786
801
 
@@ -939,6 +954,9 @@ module Authlete
939
954
  @supportedDocumentsCheckMethods = hash[:supportedDocumentsCheckMethods]
940
955
  @idTokenAudType = hash[:idTokenAudType]
941
956
  @verifiedClaimsValidationSchemaSet = hash[:verifiedClaimsValidationSchemaSet]
957
+ @credentialDuration = hash[:credentialDuration]
958
+ @credentialJwks = hash[:credentialJwks]
959
+ @idTokenReissuable = hash[:idTokenReissuable]
942
960
 
943
961
  end
944
962
 
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.32.0"
19
+ VERSION = "1.34.0"
20
20
  end
@@ -198,6 +198,9 @@ class ServiceTest < Minitest::Test
198
198
  SUPPORTED_DOCUMENTS_CHECK_METHODS = ['supported', 'documents']
199
199
  ID_TOKEN_AUD_TYPE = '<id-token-aud-type>'
200
200
  VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET = '<verified_claims_validation_schema_set>'
201
+ CREDENTIAL_DURATION = 100
202
+ CREDENTIAL_JWKS = '<credential-duration>'
203
+ ID_TOKEN_REISSUABLE = false
201
204
 
202
205
  def generate_json
203
206
  return <<~JSON
@@ -355,7 +358,11 @@ class ServiceTest < Minitest::Test
355
358
  "openidDroppedOnRefreshWithoutOfflineAccess": false,
356
359
  "supportedDocumentsCheckMethods": ["supported","documents"],
357
360
  "idTokenAudType": "<id-token-aud-type>",
358
- "verifiedClaimsValidationSchemaSet": "<verified_claims_validation_schema_set>"
361
+ "verifiedClaimsValidationSchemaSet": "<verified_claims_validation_schema_set>",
362
+
363
+ "credentialDuration": 100,
364
+ "credentialJwks": "<credential-duration>",
365
+ "idTokenReissuable": false
359
366
  }
360
367
  JSON
361
368
 
@@ -518,7 +525,9 @@ 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>',
530
+ idTokenReissuable: false,
522
531
  }
523
532
  end
524
533
 
@@ -676,6 +685,9 @@ class ServiceTest < Minitest::Test
676
685
  obj.supported_documents_check_methods = SUPPORTED_DOCUMENTS_CHECK_METHODS
677
686
  obj.id_token_aud_type = ID_TOKEN_AUD_TYPE
678
687
  obj.verified_claims_validation_schema_set = VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET
688
+ obj.credential_duration = CREDENTIAL_DURATION
689
+ obj.credential_jwks = CREDENTIAL_JWKS
690
+ obj.id_token_reissuable = ID_TOKEN_REISSUABLE
679
691
 
680
692
  end
681
693
 
@@ -849,6 +861,10 @@ class ServiceTest < Minitest::Test
849
861
  assert_equal SUPPORTED_DOCUMENTS_CHECK_METHODS, obj.supported_documents_check_methods
850
862
  assert_equal ID_TOKEN_AUD_TYPE, obj.id_token_aud_type
851
863
  assert_equal VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET, obj.verified_claims_validation_schema_set
864
+ assert_equal CREDENTIAL_DURATION, obj.credentialDuration
865
+ assert_equal CREDENTIAL_JWKS, obj.credentialJwks
866
+ assert_equal ID_TOKEN_REISSUABLE, obj.idTokenReissuable
867
+
852
868
  end
853
869
 
854
870
 
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.34.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-07-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client