authlete 1.29.0 → 1.31.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: 4697a779cb153a49007965bd9e2d4271240ff44def6ad927fd620d10da02fbfd
4
- data.tar.gz: e64c960b201cd23bef4587058984382642de2c54d0d51707dac4f3595a50e2eb
3
+ metadata.gz: 5b8bef7f2f9497453b9826f3d939da50a901bc476daf85c0d7428bd8aa1aaded
4
+ data.tar.gz: 50d52b0c5193cd7aa5610abead42bb9cd29b9f4098ac1f7dd1727ce027f9ffaa
5
5
  SHA512:
6
- metadata.gz: 253c088dae1177e94f5585471ef642399ed309b6452066a1691fc093d1bae8355fabf952739fd0cd3de068016d6293340dc6032d8d4713f323e69ba0aa7a49e3
7
- data.tar.gz: ae51b81acf5d3fa470e65f217a5869db0062dd19acfc1a39c7fd87de6067509cf765e01ecd871e927c97b65cf6cd9d330b9f4adb8a733c36b59dbd6c3a9f0faf
6
+ metadata.gz: 6af80ebd79b50ec3856ec53ae123cfc026f150ff061c3f2c8bfcf6415d41cedf7952806afb77e13657e5f316899ce9d3b65b1ce5158315cc39cccc341ae42f2c
7
+ data.tar.gz: 22d15dcfe1c9517f3c85cfb3af32358a80da85650735f5d354b5334699a4b0fa0ee27235b94dc40db3609d2810a6d737bc996073cf99369b6f9c5761460da795
@@ -332,6 +332,10 @@ module Authlete
332
332
  alias_method :explicitly_registered, :explicitlyRegistered
333
333
  alias_method :explicitly_registered=, :explicitlyRegistered=
334
334
 
335
+ attr_accessor :dpopRequired
336
+ alias_method :dpop_required, :dpopRequired
337
+ alias_method :dpop_required=, :dpopRequired=
338
+
335
339
  private
336
340
 
337
341
  def defaults
@@ -417,6 +421,7 @@ module Authlete
417
421
  pkceS256Required: false,
418
422
  automaticallyRegistered: false,
419
423
  explicitlyRegistered: false,
424
+ dpopRequired: false,
420
425
  }
421
426
  end
422
427
 
@@ -502,6 +507,7 @@ module Authlete
502
507
  @pkceS256Required = hash[:pkceS256Required]
503
508
  @automaticallyRegistered = hash[:automaticallyRegistered]
504
509
  @explicitlyRegistered = hash[:explicitlyRegistered]
510
+ @dpopRequired = hash[:dpopRequired]
505
511
  end
506
512
 
507
513
  def to_hash_value(key, var)
@@ -615,6 +615,10 @@ module Authlete
615
615
  alias_method :supported_documents_check_methods, :supportedDocumentsCheckMethods
616
616
  alias_method :supported_documents_check_methods=, :supportedDocumentsCheckMethods=
617
617
 
618
+ attr_accessor :idTokenAudType
619
+ alias_method :id_token_aud_type, :idTokenAudType
620
+ alias_method :id_token_aud_type=, :idTokenAudType=
621
+
618
622
  private
619
623
 
620
624
  def defaults
@@ -771,6 +775,7 @@ module Authlete
771
775
  dcrDuplicateSoftwareIdBlocked: false,
772
776
  openidDroppedOnRefreshWithoutOfflineAccess: false,
773
777
  supportedDocumentsCheckMethods: nil,
778
+ idTokenAudType: nil,
774
779
  }
775
780
  end
776
781
 
@@ -927,6 +932,7 @@ module Authlete
927
932
  @dcrDuplicateSoftwareIdBlocked = hash[:dcrDuplicateSoftwareIdBlocked]
928
933
  @openidDroppedOnRefreshWithoutOfflineAccess = hash[:openidDroppedOnRefreshWithoutOfflineAccess]
929
934
  @supportedDocumentsCheckMethods = hash[:supportedDocumentsCheckMethods]
935
+ @idTokenAudType = hash[:idTokenAudType]
930
936
 
931
937
  end
932
938
 
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.29.0"
19
+ VERSION = "1.31.0"
20
20
  end
@@ -127,6 +127,7 @@ class ClientTest < Minitest::Test
127
127
  PKCE_S256_REQUIRED = false
128
128
  AUTOMATICALLY_REGISTERED = false
129
129
  EXPLICITLY_REGISTERED = false
130
+ DPOP_REQUIRED = false
130
131
 
131
132
  def generate_json
132
133
  return <<~JSON
@@ -217,7 +218,8 @@ class ClientTest < Minitest::Test
217
218
  "pkceRequired": false,
218
219
  "pkceS256Required": false,
219
220
  "automaticallyRegistered": false,
220
- "explicitlyRegistered": false
221
+ "explicitlyRegistered": false,
222
+ "dpopRequired": false
221
223
  }
222
224
  JSON
223
225
  end
@@ -312,6 +314,7 @@ class ClientTest < Minitest::Test
312
314
  pkceS256Required: false,
313
315
  automaticallyRegistered: false,
314
316
  explicitlyRegistered: false,
317
+ dpopRequired: false,
315
318
  }
316
319
  end
317
320
 
@@ -397,6 +400,7 @@ class ClientTest < Minitest::Test
397
400
  obj.pkceS256Required = PKCE_S256_REQUIRED
398
401
  obj.automaticallyRegistered = AUTOMATICALLY_REGISTERED
399
402
  obj.explicitlyRegistered = EXPLICITLY_REGISTERED
403
+ obj.dpopRequired = DPOP_REQUIRED
400
404
  end
401
405
 
402
406
 
@@ -491,6 +495,7 @@ class ClientTest < Minitest::Test
491
495
  assert_equal PKCE_S256_REQUIRED, obj.pkceS256Required
492
496
  assert_equal AUTOMATICALLY_REGISTERED, obj.automaticallyRegistered
493
497
  assert_equal EXPLICITLY_REGISTERED, obj.explicitlyRegistered
498
+ assert_equal DPOP_REQUIRED, obj.dpopRequired
494
499
  end
495
500
 
496
501
 
@@ -196,6 +196,7 @@ class ServiceTest < Minitest::Test
196
196
  DCR_DUPLICATE_SOFTWARE_ID_BLOCKED = false
197
197
  OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS = false
198
198
  SUPPORTED_DOCUMENTS_CHECK_METHODS = ['supported', 'documents']
199
+ ID_TOKEN_AUD_TYPE = '<id-token-aud-type>'
199
200
 
200
201
  def generate_json
201
202
  return <<~JSON
@@ -351,7 +352,8 @@ class ServiceTest < Minitest::Test
351
352
  "federationConfigurationDuration": 100,
352
353
  "dcrDuplicateSoftwareIdBlocked": false,
353
354
  "openidDroppedOnRefreshWithoutOfflineAccess": false,
354
- "supportedDocumentsCheckMethods": ["supported","documents"]
355
+ "supportedDocumentsCheckMethods": ["supported","documents"],
356
+ "idTokenAudType": "<id-token-aud-type>"
355
357
  }
356
358
  JSON
357
359
 
@@ -511,7 +513,8 @@ class ServiceTest < Minitest::Test
511
513
  federationConfigurationDuration: 100,
512
514
  dcrDuplicateSoftwareIdBlocked: false,
513
515
  openidDroppedOnRefreshWithoutOfflineAccess: false,
514
- supportedDocumentsCheckMethods: ['supported', 'documents']
516
+ supportedDocumentsCheckMethods: ['supported', 'documents'],
517
+ idTokenAudType: '<id-token-aud-type>'
515
518
  }
516
519
  end
517
520
 
@@ -667,6 +670,7 @@ class ServiceTest < Minitest::Test
667
670
  obj.dcr_duplicate_software_id_blocked = DCR_DUPLICATE_SOFTWARE_ID_BLOCKED
668
671
  obj.openidDroppedOnRefreshWithoutOfflineAccess = OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS
669
672
  obj.supported_documents_check_methods = SUPPORTED_DOCUMENTS_CHECK_METHODS
673
+ obj.id_token_aud_type = ID_TOKEN_AUD_TYPE
670
674
  end
671
675
 
672
676
  def match(obj)
@@ -837,6 +841,7 @@ class ServiceTest < Minitest::Test
837
841
  assert_equal DCR_DUPLICATE_SOFTWARE_ID_BLOCKED, obj.dcrDuplicateSoftwareIdBlocked
838
842
  assert_equal OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS, obj.openidDroppedOnRefreshWithoutOfflineAccess
839
843
  assert_equal SUPPORTED_DOCUMENTS_CHECK_METHODS, obj.supported_documents_check_methods
844
+ assert_equal ID_TOKEN_AUD_TYPE, obj.id_token_aud_type
840
845
  end
841
846
 
842
847
 
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.29.0
4
+ version: 1.31.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: 2022-12-20 00:00:00.000000000 Z
13
+ date: 2023-04-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client