authlete 1.27.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69f45d3c1632656ee8110567b764075c4cc484b2590e370bff3bfe740582cc6e
4
- data.tar.gz: '06548ccc3cc91609a7dd78ab98baae2187c9dda0c3284db5ef4fe74a4abbfdef'
3
+ metadata.gz: 4697a779cb153a49007965bd9e2d4271240ff44def6ad927fd620d10da02fbfd
4
+ data.tar.gz: e64c960b201cd23bef4587058984382642de2c54d0d51707dac4f3595a50e2eb
5
5
  SHA512:
6
- metadata.gz: feda552048bd061d4c1a5a9a4236f2aa5261919b6764c0abda706e2d6142fc43378543ec77643d817beeba890a42fd05672e7df52e2aa483830e4537d1abb1ea
7
- data.tar.gz: 41042c43f9205854650fc059c0e52485e53d412b861f3b34aae14df6e492e786216956930a86dceeadb90ebe5bafb32ad2b4be96745ab2f2f3406d83b17206c2
6
+ metadata.gz: 253c088dae1177e94f5585471ef642399ed309b6452066a1691fc093d1bae8355fabf952739fd0cd3de068016d6293340dc6032d8d4713f323e69ba0aa7a49e3
7
+ data.tar.gz: ae51b81acf5d3fa470e65f217a5869db0062dd19acfc1a39c7fd87de6067509cf765e01ecd871e927c97b65cf6cd9d330b9f4adb8a733c36b59dbd6c3a9f0faf
@@ -324,6 +324,14 @@ module Authlete
324
324
  alias_method :pkce_s256_required, :pkceS256Required
325
325
  alias_method :pkce_s256_required=, :pkceS256Required=
326
326
 
327
+ attr_accessor :automaticallyRegistered
328
+ alias_method :automatically_registered, :automaticallyRegistered
329
+ alias_method :automatically_registered=, :automaticallyRegistered=
330
+
331
+ attr_accessor :explicitlyRegistered
332
+ alias_method :explicitly_registered, :explicitlyRegistered
333
+ alias_method :explicitly_registered=, :explicitlyRegistered=
334
+
327
335
  private
328
336
 
329
337
  def defaults
@@ -407,6 +415,8 @@ module Authlete
407
415
  singleAccessTokenPerSubject: false,
408
416
  pkceRequired: false,
409
417
  pkceS256Required: false,
418
+ automaticallyRegistered: false,
419
+ explicitlyRegistered: false,
410
420
  }
411
421
  end
412
422
 
@@ -490,6 +500,8 @@ module Authlete
490
500
  @singleAccessTokenPerSubject = hash[:singleAccessTokenPerSubject]
491
501
  @pkceRequired = hash[:pkceRequired]
492
502
  @pkceS256Required = hash[:pkceS256Required]
503
+ @automaticallyRegistered = hash[:automaticallyRegistered]
504
+ @explicitlyRegistered = hash[:explicitlyRegistered]
493
505
  end
494
506
 
495
507
  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.27.0"
19
+ VERSION = "1.29.0"
20
20
  end
@@ -125,6 +125,8 @@ class ClientTest < Minitest::Test
125
125
  SINGLE_ACCESS_TOKEN_PER_SUBJECT = false
126
126
  PKCE_REQUIRED = false
127
127
  PKCE_S256_REQUIRED = false
128
+ AUTOMATICALLY_REGISTERED = false
129
+ EXPLICITLY_REGISTERED = false
128
130
 
129
131
  def generate_json
130
132
  return <<~JSON
@@ -213,7 +215,9 @@ class ClientTest < Minitest::Test
213
215
  "digestAlgorithm": "<digest-algorithm>",
214
216
  "singleAccessTokenPerSubject": false,
215
217
  "pkceRequired": false,
216
- "pkceS256Required": false
218
+ "pkceS256Required": false,
219
+ "automaticallyRegistered": false,
220
+ "explicitlyRegistered": false
217
221
  }
218
222
  JSON
219
223
  end
@@ -306,6 +310,8 @@ class ClientTest < Minitest::Test
306
310
  singleAccessTokenPerSubject: false,
307
311
  pkceRequired: false,
308
312
  pkceS256Required: false,
313
+ automaticallyRegistered: false,
314
+ explicitlyRegistered: false,
309
315
  }
310
316
  end
311
317
 
@@ -389,6 +395,8 @@ class ClientTest < Minitest::Test
389
395
  obj.singleAccessTokenPerSubject = SINGLE_ACCESS_TOKEN_PER_SUBJECT
390
396
  obj.pkceRequired = PKCE_REQUIRED
391
397
  obj.pkceS256Required = PKCE_S256_REQUIRED
398
+ obj.automaticallyRegistered = AUTOMATICALLY_REGISTERED
399
+ obj.explicitlyRegistered = EXPLICITLY_REGISTERED
392
400
  end
393
401
 
394
402
 
@@ -481,6 +489,8 @@ class ClientTest < Minitest::Test
481
489
  assert_equal SINGLE_ACCESS_TOKEN_PER_SUBJECT, obj.singleAccessTokenPerSubject
482
490
  assert_equal PKCE_REQUIRED, obj.pkceRequired
483
491
  assert_equal PKCE_S256_REQUIRED, obj.pkceS256Required
492
+ assert_equal AUTOMATICALLY_REGISTERED, obj.automaticallyRegistered
493
+ assert_equal EXPLICITLY_REGISTERED, obj.explicitlyRegistered
484
494
  end
485
495
 
486
496
 
@@ -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,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.0
4
+ version: 1.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiko Kawasaki
8
8
  - Hideki Ikeda
9
9
  - Seth Wright
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-11-20 00:00:00.000000000 Z
13
+ date: 2022-12-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -245,7 +245,7 @@ homepage: https://www.authlete.com/
245
245
  licenses:
246
246
  - Apache License, Version 2.0
247
247
  metadata: {}
248
- post_install_message:
248
+ post_install_message:
249
249
  rdoc_options: []
250
250
  require_paths:
251
251
  - lib
@@ -260,8 +260,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  - !ruby/object:Gem::Version
261
261
  version: '0'
262
262
  requirements: []
263
- rubygems_version: 3.3.11
264
- signing_key:
263
+ rubygems_version: 3.0.3.1
264
+ signing_key:
265
265
  specification_version: 4
266
266
  summary: A library for Authlete Web APIs
267
267
  test_files: