authlete 1.28.0 → 1.30.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: 998f791a1e948dc8aeee643775ab8236b5fcfcd19d23388a9ff0155b95486db5
4
- data.tar.gz: fa726f604cb3d6527676125f748ca76529083224753dfc88c16ac959118fcab0
3
+ metadata.gz: 79569d91564135754024204aab53f35b5950009d0b2fdb8dc857a70f6b4a5afa
4
+ data.tar.gz: 5440ba02cb738a1f21cac4fe1609fccf920191c49e5bfa309a74090807a64842
5
5
  SHA512:
6
- metadata.gz: a3109b33580df6d4822cfad82e53c93f71308be514608302e5ee5ff1b99243afc4e490f45207435532644001a17c407685094ef8eae4c8107a2e61368b03ed8c
7
- data.tar.gz: 25b65a63e5fbad1335986a9018ba12420e5494d8e22dcd3a7d6785ff2accc0a583b967f94ae3e375fbb8e1ec2173f07a98b88495f4ff6e0a6f7b9c506e5b1342
6
+ metadata.gz: 6213ea3cc7eb9bbac15aa68764c9bf50bfe4af34f714b83603ae9c98aba56e7c2c4dbd04bddf87b75699adb7df5840b97b7993e12cb33bca49bd44f42e26c88b
7
+ data.tar.gz: 4006d940357ab69fa3d619cee6c5a3622607ba9fc2fa5d84b026eb5d7b48e15b4bb31197ec9af6092844128ebe659bbdaf1ad6ca67f593153ebd454f6f868b39
@@ -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)
@@ -611,6 +611,10 @@ module Authlete
611
611
  alias_method :openid_dropped_on_refresh_without_offline_access, :openidDroppedOnRefreshWithoutOfflineAccess
612
612
  alias_method :openid_dropped_on_refresh_without_offline_access=, :openidDroppedOnRefreshWithoutOfflineAccess=
613
613
 
614
+ attr_accessor :supportedDocumentsCheckMethods
615
+ alias_method :supported_documents_check_methods, :supportedDocumentsCheckMethods
616
+ alias_method :supported_documents_check_methods=, :supportedDocumentsCheckMethods=
617
+
614
618
  private
615
619
 
616
620
  def defaults
@@ -766,6 +770,7 @@ module Authlete
766
770
  federationConfigurationDuration: 0,
767
771
  dcrDuplicateSoftwareIdBlocked: false,
768
772
  openidDroppedOnRefreshWithoutOfflineAccess: false,
773
+ supportedDocumentsCheckMethods: nil,
769
774
  }
770
775
  end
771
776
 
@@ -921,6 +926,7 @@ module Authlete
921
926
  @federationConfigurationDuration = hash[:federationConfigurationDuration]
922
927
  @dcrDuplicateSoftwareIdBlocked = hash[:dcrDuplicateSoftwareIdBlocked]
923
928
  @openidDroppedOnRefreshWithoutOfflineAccess = hash[:openidDroppedOnRefreshWithoutOfflineAccess]
929
+ @supportedDocumentsCheckMethods = hash[:supportedDocumentsCheckMethods]
924
930
 
925
931
  end
926
932
 
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.28.0"
19
+ VERSION = "1.30.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
 
@@ -195,6 +195,7 @@ class ServiceTest < Minitest::Test
195
195
  FEDERATION_CONFIGURATION_DURATION = 100
196
196
  DCR_DUPLICATE_SOFTWARE_ID_BLOCKED = false
197
197
  OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS = false
198
+ SUPPORTED_DOCUMENTS_CHECK_METHODS = ['supported', 'documents']
198
199
 
199
200
  def generate_json
200
201
  return <<~JSON
@@ -349,7 +350,8 @@ class ServiceTest < Minitest::Test
349
350
  "federationSignatureKeyId": "<federation-signature-key-id>",
350
351
  "federationConfigurationDuration": 100,
351
352
  "dcrDuplicateSoftwareIdBlocked": false,
352
- "openidDroppedOnRefreshWithoutOfflineAccess": false
353
+ "openidDroppedOnRefreshWithoutOfflineAccess": false,
354
+ "supportedDocumentsCheckMethods": ["supported","documents"]
353
355
  }
354
356
  JSON
355
357
 
@@ -508,7 +510,8 @@ class ServiceTest < Minitest::Test
508
510
  federationSignatureKeyId: '<federation-signature-key-id>',
509
511
  federationConfigurationDuration: 100,
510
512
  dcrDuplicateSoftwareIdBlocked: false,
511
- openidDroppedOnRefreshWithoutOfflineAccess: false
513
+ openidDroppedOnRefreshWithoutOfflineAccess: false,
514
+ supportedDocumentsCheckMethods: ['supported', 'documents']
512
515
  }
513
516
  end
514
517
 
@@ -663,6 +666,7 @@ class ServiceTest < Minitest::Test
663
666
  obj.federation_configuration_duration = FEDERATION_CONFIGURATION_DURATION
664
667
  obj.dcr_duplicate_software_id_blocked = DCR_DUPLICATE_SOFTWARE_ID_BLOCKED
665
668
  obj.openidDroppedOnRefreshWithoutOfflineAccess = OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS
669
+ obj.supported_documents_check_methods = SUPPORTED_DOCUMENTS_CHECK_METHODS
666
670
  end
667
671
 
668
672
  def match(obj)
@@ -832,6 +836,7 @@ class ServiceTest < Minitest::Test
832
836
  assert_equal FEDERATION_CONFIGURATION_DURATION, obj.federationConfigurationDuration
833
837
  assert_equal DCR_DUPLICATE_SOFTWARE_ID_BLOCKED, obj.dcrDuplicateSoftwareIdBlocked
834
838
  assert_equal OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS, obj.openidDroppedOnRefreshWithoutOfflineAccess
839
+ assert_equal SUPPORTED_DOCUMENTS_CHECK_METHODS, obj.supported_documents_check_methods
835
840
  end
836
841
 
837
842
 
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.28.0
4
+ version: 1.30.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-11-29 00:00:00.000000000 Z
13
+ date: 2023-04-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client