authlete 1.11.0 → 1.15.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: 577aec2ce8765b18c221169cbee8c7daa6b6c4e48bfffc665cbb819325373318
4
- data.tar.gz: d01b7ababf92b96a193d59a28bae1a8d98a5170e01f047288ab766ce8909388e
3
+ metadata.gz: bee5128a1d1f17669350fbec41d157f661158af5c1f7d246c9c3d79a88668e6f
4
+ data.tar.gz: e5e91e58a957349b7a5c8662dad635e596956faae38368a76c3db3feef1813bb
5
5
  SHA512:
6
- metadata.gz: fc4b13c802eefd16f51b5dd5af62bde5671fd8e49509ea0755641106847041d85675ec13290c40f1ab15d160829ec467b72beebfe3cabe598c07cf653a8e109b
7
- data.tar.gz: e02ac5ffa5c47d88d7bc3b5ab6368696268a122a9ca1ab828f89b1d8f6efcee10a66690452e37eb35ddb2c780cc56ca09658a473624a22f4e4fe95ae50d0bfe3
6
+ metadata.gz: e2caa89f75f5509e6ba55aa29ed8e43554f413c98b49cbaee97dc4e252d6c821b6f2fb94a28b8dea5d3fe0ea196ec1d9e0b31f2e47c02af00160516cc8001020
7
+ data.tar.gz: 291ab74bc7f4558f093ca9fc4808a7a8f6fcba3420711822492be0d58671023033da14a9ddad2f49aeedf368e615448eacc2453ffe3b7c6ef0e1ef881d2e8d47
@@ -305,6 +305,9 @@ module Authlete
305
305
  alias_method :request_object_encryption_enc_match_required, :requestObjectEncryptionEncMatchRequired
306
306
  alias_method :request_object_encryption_enc_match_required=, :requestObjectEncryptionEncMatchRequired=
307
307
 
308
+ attr_accessor :digestAlgorithm
309
+ alias_method :digest_algorithm, :digestAlgorithm
310
+ alias_method :digest_algorithm=, :digestAlgorithm=
308
311
  private
309
312
 
310
313
  def defaults
@@ -383,7 +386,8 @@ module Authlete
383
386
  customMetadata: nil,
384
387
  frontChannelRequestObjectEncryptionRequired: false,
385
388
  requestObjectEncryptionAlgMatchRequired: false,
386
- requestObjectEncryptionEncMatchRequired: false
389
+ requestObjectEncryptionEncMatchRequired: false,
390
+ digestAlgorithm: nil
387
391
  }
388
392
  end
389
393
 
@@ -463,6 +467,7 @@ module Authlete
463
467
  @frontChannelRequestObjectEncryptionRequired = hash[:frontChannelRequestObjectEncryptionRequired]
464
468
  @requestObjectEncryptionAlgMatchRequired = hash[:requestObjectEncryptionAlgMatchRequired]
465
469
  @requestObjectEncryptionEncMatchRequired = hash[:requestObjectEncryptionEncMatchRequired]
470
+ @digestAlgorithm = hash[:digestAlgorithm]
466
471
  end
467
472
 
468
473
  def to_hash_value(key, var)
@@ -478,6 +478,46 @@ module Authlete
478
478
  attr_accessor :unauthorizedOnClientConfigSupported
479
479
  alias_method :unauthorized_on_client_config_supported, :unauthorizedOnClientConfigSupported
480
480
  alias_method :unauthorized_on_client_config_supported=, :unauthorizedOnClientConfigSupported=
481
+
482
+ attr_accessor :dcrScopeUsedAsRequestable
483
+ alias_method :dcr_scope_used_as_requestable, :dcrScopeUsedAsRequestable
484
+ alias_method :dcr_scope_used_as_requestable=, :dcrScopeUsedAsRequestable=
485
+
486
+ attr_accessor :predefinedTransformedClaims
487
+ alias_method :predefined_transformed_claims, :predefinedTransformedClaims
488
+ alias_method :predefined_transformed_claims=, :predefinedTransformedClaims=
489
+
490
+ attr_accessor :loopbackRedirectionUriVariable
491
+ alias_method :loopback_redirection_uri_variable, :loopbackRedirectionUriVariable
492
+ alias_method :loopback_redirection_uri_variable=, :loopbackRedirectionUriVariable=
493
+
494
+ attr_accessor :supportedDocuments
495
+ alias_method :supported_documents, :supportedDocuments
496
+ alias_method :supported_documents=, :supportedDocuments=
497
+
498
+ attr_accessor :supportedDocumentsMethods
499
+ alias_method :supported_documents_methods, :supportedDocumentsMethods
500
+ alias_method :supported_documents_methods=, :supportedDocumentsMethods=
501
+
502
+ attr_accessor :supportedDocumentsValidationMethods
503
+ alias_method :supported_documents_validation_methods, :supportedDocumentsValidationMethods
504
+ alias_method :supported_documents_validation_methods=, :supportedDocumentsValidationMethods=
505
+
506
+ attr_accessor :supportedDocumentsVerificationMethods
507
+ alias_method :supported_documents_verification_methods, :supportedDocumentsVerificationMethods
508
+ alias_method :supported_documents_verification_methods=, :supportedDocumentsVerificationMethods=
509
+
510
+ attr_accessor :supportedElectronicRecords
511
+ alias_method :supported_electronic_records, :supportedElectronicRecords
512
+ alias_method :supported_electronic_records=, :supportedElectronicRecords=
513
+
514
+ attr_accessor :supportedAttachments
515
+ alias_method :supported_attachments, :supportedAttachments
516
+ alias_method :supported_attachments=, :supportedAttachments=
517
+
518
+ attr_accessor :supportedDigestAlgorithms
519
+ alias_method :supported_digest_algorithms, :supportedDigestAlgorithms
520
+ alias_method :supported_digest_algorithms=, :supportedDigestAlgorithms=
481
521
  private
482
522
 
483
523
  def defaults
@@ -599,7 +639,17 @@ module Authlete
599
639
  refreshTokenDurationReset: false,
600
640
  grantManagementEndpoint: nil,
601
641
  grantManagementActionRequired: false,
602
- unauthorizedOnClientConfigSupported: false
642
+ unauthorizedOnClientConfigSupported: false,
643
+ dcrScopeUsedAsRequestable: false,
644
+ predefinedTransformedClaims: nil,
645
+ loopbackRedirectionUriVariable: false,
646
+ supportedDocuments: nil,
647
+ supportedDocumentsMethods: nil,
648
+ supportedDocumentsValidationMethods: nil,
649
+ supportedDocumentsVerificationMethods: nil,
650
+ supportedElectronicRecords: nil,
651
+ supportedAttachments: nil,
652
+ supportedDigestAlgorithms: nil,
603
653
  }
604
654
  end
605
655
 
@@ -722,6 +772,16 @@ module Authlete
722
772
  @grantManagementEndpoint = hash[:grantManagementEndpoint]
723
773
  @grantManagementActionRequired = hash[:grantManagementActionRequired]
724
774
  @unauthorizedOnClientConfigSupported = hash[:unauthorizedOnClientConfigSupported]
775
+ @dcrScopeUsedAsRequestable = hash[:dcrScopeUsedAsRequestable]
776
+ @predefinedTransformedClaims = hash[:predefinedTransformedClaims]
777
+ @loopbackRedirectionUriVariable = hash[:loopbackRedirectionUriVariable]
778
+ @supportedDocuments = hash[:supportedDocuments]
779
+ @supportedDocumentsMethods = hash[:supportedDocumentsMethods]
780
+ @supportedDocumentsValidationMethods = hash[:supportedDocumentsValidationMethods]
781
+ @supportedDocumentsVerificationMethods = hash[:supportedDocumentsVerificationMethods]
782
+ @supportedElectronicRecords = hash[:supportedElectronicRecords]
783
+ @supportedAttachments = hash[:supportedAttachments]
784
+ @supportedDigestAlgorithms = hash[:supportedDigestAlgorithms]
725
785
  end
726
786
 
727
787
  def to_hash_value(key, var)
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.11.0"
19
+ VERSION = "1.15.0"
20
20
  end
@@ -119,7 +119,7 @@ class ClientTest < Minitest::Test
119
119
  FRONT_CHANNEL_REQUEST_OBJECT_ENCRYPTION_REQUIRED = false
120
120
  REQUEST_OBJECT_ENCRYPTION_ALG_MATCH_REQUIRED = false
121
121
  REQUEST_OBJECT_ENCRYPTION_ENC_MATCH_REQUIRED = false
122
-
122
+ DIGEST_ALGORITHM = '<digest-algorithm>'
123
123
 
124
124
  def generate_json
125
125
  return <<~JSON
@@ -203,7 +203,8 @@ class ClientTest < Minitest::Test
203
203
  "customMetadata": "<custom-metadata>",
204
204
  "frontChannelRequestObjectEncryptionRequired": false,
205
205
  "requestObjectEncryptionAlgMatchRequired": false,
206
- "requestObjectEncryptionEncMatchRequired": false
206
+ "requestObjectEncryptionEncMatchRequired": false,
207
+ "digestAlgorithm": "<digest-algorithm>"
207
208
  }
208
209
  JSON
209
210
  end
@@ -290,7 +291,8 @@ class ClientTest < Minitest::Test
290
291
  customMetadata: '<custom-metadata>',
291
292
  frontChannelRequestObjectEncryptionRequired: false,
292
293
  requestObjectEncryptionAlgMatchRequired: false,
293
- requestObjectEncryptionEncMatchRequired: false
294
+ requestObjectEncryptionEncMatchRequired: false,
295
+ digestAlgorithm: '<digest-algorithm>'
294
296
  }
295
297
  end
296
298
 
@@ -371,6 +373,7 @@ class ClientTest < Minitest::Test
371
373
  obj.frontChannelRequestObjectEncryptionRequired = FRONT_CHANNEL_REQUEST_OBJECT_ENCRYPTION_REQUIRED
372
374
  obj.requestObjectEncryptionAlgMatchRequired = REQUEST_OBJECT_ENCRYPTION_ALG_MATCH_REQUIRED
373
375
  obj.requestObjectEncryptionEncMatchRequired = REQUEST_OBJECT_ENCRYPTION_ENC_MATCH_REQUIRED
376
+ obj.digestAlgorithm = DIGEST_ALGORITHM
374
377
  end
375
378
 
376
379
 
@@ -458,6 +461,7 @@ class ClientTest < Minitest::Test
458
461
  assert_equal FRONT_CHANNEL_REQUEST_OBJECT_ENCRYPTION_REQUIRED, obj.frontChannelRequestObjectEncryptionRequired
459
462
  assert_equal REQUEST_OBJECT_ENCRYPTION_ALG_MATCH_REQUIRED, obj.requestObjectEncryptionAlgMatchRequired
460
463
  assert_equal REQUEST_OBJECT_ENCRYPTION_ENC_MATCH_REQUIRED, obj.requestObjectEncryptionEncMatchRequired
464
+ assert_equal DIGEST_ALGORITHM, obj.digestAlgorithm
461
465
  end
462
466
 
463
467
 
@@ -160,6 +160,16 @@ class ServiceTest < Minitest::Test
160
160
  GRANT_MANAGEMENT_ENDPOINT = '<grant-management-endpoint>'
161
161
  GRANT_MANAGEMENT_ACTION_REQUIRED = false
162
162
  UNATHORIZED_ON_CLIENT_CONFIG_SUPPORTED = false
163
+ DCR_SCOPE_USED_AS_REQUESTABLE = false
164
+ PREDEFINED_TRANSFORMED_CLAIMS = '<predefined_transformed_claims>'
165
+ LOOPBACK_REDIRECTION_URI_VARIABLE = false
166
+ SUPPORTED_DOCUMENTS = ['<supported-documents1>', '<supported-documents1>']
167
+ SUPPORTED_DOCUMENTS_METHODS = ['<supported-documents-methods1>', '<supported-documents-methods1>']
168
+ SUPPORTED_DOCUMENTS_VALIDATION_METHODS = ['<supported-documents-validation-methods1>', '<supported-documents-validation-methods1>']
169
+ SUPPORTED_DOCUMENTS_VERIFICATION_METHODS = ['<supported-documents-verification-methods1>', '<supported-documents-verification-methods1>']
170
+ SUPPORTED_ELECTRONIC_RECORDS = ['<supported-electronic-records1>', '<supported-electronic-records1>']
171
+ SUPPORTED_ATTACHMENTS = [ 'EMBEDDED', 'EXTERNAL']
172
+ SUPPORTED_DIGEST_ALGORITHMS = ['<supported-digest-algorithms1>', '<supported-digest-algorithms1>']
163
173
 
164
174
  def generate_json
165
175
  return <<~JSON
@@ -281,7 +291,17 @@ class ServiceTest < Minitest::Test
281
291
  "refreshTokenDurationReset": false,
282
292
  "grantManagementEndpoint": "<grant-management-endpoint>",
283
293
  "grantManagementActionRequired": false,
284
- "unauthorizedOnClientConfigSupported": false
294
+ "unauthorizedOnClientConfigSupported": false,
295
+ "dcrScopeUsedAsRequestable": false,
296
+ "predefinedTransformedClaims": "<predefined_transformed_claims>",
297
+ "loopbackRedirectionUriVariable": false,
298
+ "supportedDocuments": ["<supported-documents1>", "<supported-documents1>"],
299
+ "supportedDocumentsMethods": ["<supported-documents-methods1>", "<supported-documents-methods1>"],
300
+ "supportedDocumentsValidationMethods": ["<supported-documents-validation-methods1>", "<supported-documents-validation-methods1>"],
301
+ "supportedDocumentsVerificationMethods": ["<supported-documents-verification-methods1>", "<supported-documents-verification-methods1>"],
302
+ "supportedElectronicRecords": ["<supported-electronic-records1>", "<supported-electronic-records1>"],
303
+ "supportedAttachments": [ "EMBEDDED", "EXTERNAL"],
304
+ "supportedDigestAlgorithms": ["<supported-digest-algorithms1>", "<supported-digest-algorithms1>"]
285
305
  }
286
306
  JSON
287
307
  end
@@ -406,7 +426,17 @@ class ServiceTest < Minitest::Test
406
426
  refreshTokenDurationReset: false,
407
427
  grantManagementEndpoint: '<grant-management-endpoint>',
408
428
  grantManagementActionRequired: false,
409
- unauthorizedOnClientConfigSupported: false
429
+ unauthorizedOnClientConfigSupported: false,
430
+ dcrScopeUsedAsRequestable: false,
431
+ predefinedTransformedClaims: '<predefined_transformed_claims>',
432
+ loopbackRedirectionUriVariable: false,
433
+ supportedDocuments: ['<supported-documents1>', '<supported-documents1>'],
434
+ supportedDocumentsMethods: ['<supported-documents-methods1>', '<supported-documents-methods1>'],
435
+ supportedDocumentsValidationMethods: ['<supported-documents-validation-methods1>', '<supported-documents-validation-methods1>'],
436
+ supportedDocumentsVerificationMethods: ['<supported-documents-verification-methods1>', '<supported-documents-verification-methods1>'],
437
+ supportedElectronicRecords: ['<supported-electronic-records1>', '<supported-electronic-records1>'],
438
+ supportedAttachments: [ 'EMBEDDED', 'EXTERNAL'],
439
+ supportedDigestAlgorithms: ['<supported-digest-algorithms1>', '<supported-digest-algorithms1>']
410
440
  }
411
441
  end
412
442
 
@@ -530,6 +560,16 @@ class ServiceTest < Minitest::Test
530
560
  obj.grant_management_endpoint = GRANT_MANAGEMENT_ENDPOINT
531
561
  obj.grant_management_action_required = GRANT_MANAGEMENT_ACTION_REQUIRED
532
562
  obj.unauthorized_on_client_config_supported = UNATHORIZED_ON_CLIENT_CONFIG_SUPPORTED
563
+ obj.dcr_scope_used_as_requestable = DCR_SCOPE_USED_AS_REQUESTABLE
564
+ obj.predefined_transformed_claims = PREDEFINED_TRANSFORMED_CLAIMS
565
+ obj.loopback_redirection_uri_variable = LOOPBACK_REDIRECTION_URI_VARIABLE
566
+ obj.supported_documents = SUPPORTED_DOCUMENTS
567
+ obj.supported_documents_methods = SUPPORTED_DOCUMENTS_METHODS
568
+ obj.supported_documents_validation_methods = SUPPORTED_DOCUMENTS_VALIDATION_METHODS
569
+ obj.supported_documents_verification_methods = SUPPORTED_DOCUMENTS_VERIFICATION_METHODS
570
+ obj.supported_electronic_records = SUPPORTED_ELECTRONIC_RECORDS
571
+ obj.supported_attachments = SUPPORTED_ATTACHMENTS
572
+ obj.supported_digest_algorithms = SUPPORTED_DIGEST_ALGORITHMS
533
573
  end
534
574
 
535
575
 
@@ -666,6 +706,16 @@ class ServiceTest < Minitest::Test
666
706
  assert_equal GRANT_MANAGEMENT_ENDPOINT, obj.grantManagementEndpoint
667
707
  assert_equal GRANT_MANAGEMENT_ACTION_REQUIRED, obj.grantManagementActionRequired
668
708
  assert_equal UNATHORIZED_ON_CLIENT_CONFIG_SUPPORTED, obj.unauthorizedOnClientConfigSupported
709
+ assert_equal DCR_SCOPE_USED_AS_REQUESTABLE, obj.dcrScopeUsedAsRequestable
710
+ assert_equal PREDEFINED_TRANSFORMED_CLAIMS, obj.predefined_transformed_claims
711
+ assert_equal LOOPBACK_REDIRECTION_URI_VARIABLE, obj.loopback_redirection_uri_variable
712
+ assert_equal SUPPORTED_DOCUMENTS, obj.supported_documents
713
+ assert_equal SUPPORTED_DOCUMENTS_METHODS, obj.supported_documents_methods
714
+ assert_equal SUPPORTED_DOCUMENTS_VALIDATION_METHODS, obj.supported_documents_validation_methods
715
+ assert_equal SUPPORTED_DOCUMENTS_VERIFICATION_METHODS, obj.supported_documents_verification_methods
716
+ assert_equal SUPPORTED_ELECTRONIC_RECORDS, obj.supported_electronic_records
717
+ assert_equal SUPPORTED_ATTACHMENTS, obj.supported_attachments
718
+ assert_equal SUPPORTED_DIGEST_ALGORITHMS, obj.supported_digest_algorithms
669
719
  end
670
720
 
671
721
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiko Kawasaki
8
8
  - Hideki Ikeda
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-10-20 00:00:00.000000000 Z
12
+ date: 2022-02-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -223,7 +223,7 @@ homepage: https://www.authlete.com/
223
223
  licenses:
224
224
  - Apache License, Version 2.0
225
225
  metadata: {}
226
- post_install_message:
226
+ post_install_message:
227
227
  rdoc_options: []
228
228
  require_paths:
229
229
  - lib
@@ -238,8 +238,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  - !ruby/object:Gem::Version
239
239
  version: '0'
240
240
  requirements: []
241
- rubygems_version: 3.2.15
242
- signing_key:
241
+ rubygems_version: 3.0.3.1
242
+ signing_key:
243
243
  specification_version: 4
244
244
  summary: A library for Authlete Web APIs
245
245
  test_files: