authlete 1.28.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: 998f791a1e948dc8aeee643775ab8236b5fcfcd19d23388a9ff0155b95486db5
4
- data.tar.gz: fa726f604cb3d6527676125f748ca76529083224753dfc88c16ac959118fcab0
3
+ metadata.gz: 4697a779cb153a49007965bd9e2d4271240ff44def6ad927fd620d10da02fbfd
4
+ data.tar.gz: e64c960b201cd23bef4587058984382642de2c54d0d51707dac4f3595a50e2eb
5
5
  SHA512:
6
- metadata.gz: a3109b33580df6d4822cfad82e53c93f71308be514608302e5ee5ff1b99243afc4e490f45207435532644001a17c407685094ef8eae4c8107a2e61368b03ed8c
7
- data.tar.gz: 25b65a63e5fbad1335986a9018ba12420e5494d8e22dcd3a7d6785ff2accc0a583b967f94ae3e375fbb8e1ec2173f07a98b88495f4ff6e0a6f7b9c506e5b1342
6
+ metadata.gz: 253c088dae1177e94f5585471ef642399ed309b6452066a1691fc093d1bae8355fabf952739fd0cd3de068016d6293340dc6032d8d4713f323e69ba0aa7a49e3
7
+ data.tar.gz: ae51b81acf5d3fa470e65f217a5869db0062dd19acfc1a39c7fd87de6067509cf765e01ecd871e927c97b65cf6cd9d330b9f4adb8a733c36b59dbd6c3a9f0faf
@@ -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.29.0"
20
20
  end
@@ -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.29.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: 2022-12-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client