authlete 1.14.0 → 1.17.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: ce2f1f344d0987a705ba78661b2635ab9f4bd213c1a6911b92ada1e041653933
4
- data.tar.gz: d7c4ff1de00e61c1235dfdd313b940f4899c0f6d858e18991cbe85f299c097a3
3
+ metadata.gz: 9edcad771204fa9462d8bbbc07f5651c3725f371bb2d2b338230af76d90a90d6
4
+ data.tar.gz: d36cac2851b2aaf55ba514292cfef692048361799d010df3feca028e64cf6e0d
5
5
  SHA512:
6
- metadata.gz: e15c0295b3b49e482d7a516d7f71ab9962fbf1af62d9a656c0019afeae8db71cc8c718aaac2e8d52a82f4fd8744454ccf9b83d5b109220eb238fb9ad24e5f1be
7
- data.tar.gz: 209f5288986b70fb731a7818c39ee69876536a4cd6110c1b50c565dc9cdd46dbc17195ce785d27a3e16f4ec67eabceea2d2dd97edbee4495551be1db73a1fbb1
6
+ metadata.gz: 2edd4f18ed30756b6edb7481e707a3d718e35f03892eff80d25cf708bd14c8b0be78434ec3f685d8ca71e9ad6b25edcab2efb24512a50b5b815562682e2e9596
7
+ data.tar.gz: 2db6779a4df0a46a80c6de5d5fbe901934be2ce2e4f49f5967c4bb575a5bae9cfd0953c085cc01a75b843a6b0e9ee79224594ac3f1cfa398ebc1238722db97bd
@@ -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)
@@ -490,8 +490,44 @@ module Authlete
490
490
  attr_accessor :loopbackRedirectionUriVariable
491
491
  alias_method :loopback_redirection_uri_variable, :loopbackRedirectionUriVariable
492
492
  alias_method :loopback_redirection_uri_variable=, :loopbackRedirectionUriVariable=
493
- private
494
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=
521
+
522
+ attr_accessor :requestObjectAudienceChecked
523
+ alias_method :request_object_audience_checked, :requestObjectAudienceChecked
524
+ alias_method :request_object_audience_checked=, :requestObjectAudienceChecked=
525
+
526
+ attr_accessor :accessTokenForExternalAttachmentEmbedded
527
+ alias_method :access_token_for_external_attachment_embedded, :accessTokenForExternalAttachmentEmbedded
528
+ alias_method :access_token_for_external_attachment_embedded=, :accessTokenForExternalAttachmentEmbedded=
529
+ private
530
+
495
531
  def defaults
496
532
  {
497
533
  number: 0,
@@ -614,7 +650,16 @@ module Authlete
614
650
  unauthorizedOnClientConfigSupported: false,
615
651
  dcrScopeUsedAsRequestable: false,
616
652
  predefinedTransformedClaims: nil,
617
- loopbackRedirectionUriVariable: false
653
+ loopbackRedirectionUriVariable: false,
654
+ supportedDocuments: nil,
655
+ supportedDocumentsMethods: nil,
656
+ supportedDocumentsValidationMethods: nil,
657
+ supportedDocumentsVerificationMethods: nil,
658
+ supportedElectronicRecords: nil,
659
+ supportedAttachments: nil,
660
+ supportedDigestAlgorithms: nil,
661
+ requestObjectAudienceChecked: false,
662
+ accessTokenForExternalAttachmentEmbedded: false,
618
663
  }
619
664
  end
620
665
 
@@ -740,6 +785,15 @@ module Authlete
740
785
  @dcrScopeUsedAsRequestable = hash[:dcrScopeUsedAsRequestable]
741
786
  @predefinedTransformedClaims = hash[:predefinedTransformedClaims]
742
787
  @loopbackRedirectionUriVariable = hash[:loopbackRedirectionUriVariable]
788
+ @supportedDocuments = hash[:supportedDocuments]
789
+ @supportedDocumentsMethods = hash[:supportedDocumentsMethods]
790
+ @supportedDocumentsValidationMethods = hash[:supportedDocumentsValidationMethods]
791
+ @supportedDocumentsVerificationMethods = hash[:supportedDocumentsVerificationMethods]
792
+ @supportedElectronicRecords = hash[:supportedElectronicRecords]
793
+ @supportedAttachments = hash[:supportedAttachments]
794
+ @supportedDigestAlgorithms = hash[:supportedDigestAlgorithms]
795
+ @requestObjectAudienceChecked = hash[:requestObjectAudienceChecked]
796
+ @accessTokenForExternalAttachmentEmbedded = hash[:accessTokenForExternalAttachmentEmbedded]
743
797
  end
744
798
 
745
799
  def to_hash_value(key, var)
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.14.0"
19
+ VERSION = "1.17.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
 
@@ -163,6 +163,15 @@ class ServiceTest < Minitest::Test
163
163
  DCR_SCOPE_USED_AS_REQUESTABLE = false
164
164
  PREDEFINED_TRANSFORMED_CLAIMS = '<predefined_transformed_claims>'
165
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>']
173
+ REQUEST_OBJECT_AUDIENCE_CHECKED = true
174
+ ACCESS_TOKEN_FOR_EXTERNAL_ATTACHMENT_EMBEDDED = false
166
175
 
167
176
  def generate_json
168
177
  return <<~JSON
@@ -287,7 +296,16 @@ class ServiceTest < Minitest::Test
287
296
  "unauthorizedOnClientConfigSupported": false,
288
297
  "dcrScopeUsedAsRequestable": false,
289
298
  "predefinedTransformedClaims": "<predefined_transformed_claims>",
290
- "loopbackRedirectionUriVariable": false
299
+ "loopbackRedirectionUriVariable": false,
300
+ "supportedDocuments": ["<supported-documents1>", "<supported-documents1>"],
301
+ "supportedDocumentsMethods": ["<supported-documents-methods1>", "<supported-documents-methods1>"],
302
+ "supportedDocumentsValidationMethods": ["<supported-documents-validation-methods1>", "<supported-documents-validation-methods1>"],
303
+ "supportedDocumentsVerificationMethods": ["<supported-documents-verification-methods1>", "<supported-documents-verification-methods1>"],
304
+ "supportedElectronicRecords": ["<supported-electronic-records1>", "<supported-electronic-records1>"],
305
+ "supportedAttachments": [ "EMBEDDED", "EXTERNAL"],
306
+ "supportedDigestAlgorithms": ["<supported-digest-algorithms1>", "<supported-digest-algorithms1>"],
307
+ "requestObjectAudienceChecked": true,
308
+ "accessTokenForExternalAttachmentEmbedded": false
291
309
  }
292
310
  JSON
293
311
  end
@@ -415,7 +433,16 @@ class ServiceTest < Minitest::Test
415
433
  unauthorizedOnClientConfigSupported: false,
416
434
  dcrScopeUsedAsRequestable: false,
417
435
  predefinedTransformedClaims: '<predefined_transformed_claims>',
418
- loopbackRedirectionUriVariable: false
436
+ loopbackRedirectionUriVariable: false,
437
+ supportedDocuments: ['<supported-documents1>', '<supported-documents1>'],
438
+ supportedDocumentsMethods: ['<supported-documents-methods1>', '<supported-documents-methods1>'],
439
+ supportedDocumentsValidationMethods: ['<supported-documents-validation-methods1>', '<supported-documents-validation-methods1>'],
440
+ supportedDocumentsVerificationMethods: ['<supported-documents-verification-methods1>', '<supported-documents-verification-methods1>'],
441
+ supportedElectronicRecords: ['<supported-electronic-records1>', '<supported-electronic-records1>'],
442
+ supportedAttachments: [ 'EMBEDDED', 'EXTERNAL'],
443
+ supportedDigestAlgorithms: ['<supported-digest-algorithms1>', '<supported-digest-algorithms1>'],
444
+ requestObjectAudienceChecked: true,
445
+ accessTokenForExternalAttachmentEmbedded: false
419
446
  }
420
447
  end
421
448
 
@@ -542,6 +569,15 @@ class ServiceTest < Minitest::Test
542
569
  obj.dcr_scope_used_as_requestable = DCR_SCOPE_USED_AS_REQUESTABLE
543
570
  obj.predefined_transformed_claims = PREDEFINED_TRANSFORMED_CLAIMS
544
571
  obj.loopback_redirection_uri_variable = LOOPBACK_REDIRECTION_URI_VARIABLE
572
+ obj.supported_documents = SUPPORTED_DOCUMENTS
573
+ obj.supported_documents_methods = SUPPORTED_DOCUMENTS_METHODS
574
+ obj.supported_documents_validation_methods = SUPPORTED_DOCUMENTS_VALIDATION_METHODS
575
+ obj.supported_documents_verification_methods = SUPPORTED_DOCUMENTS_VERIFICATION_METHODS
576
+ obj.supported_electronic_records = SUPPORTED_ELECTRONIC_RECORDS
577
+ obj.supported_attachments = SUPPORTED_ATTACHMENTS
578
+ obj.supported_digest_algorithms = SUPPORTED_DIGEST_ALGORITHMS
579
+ obj.request_object_audience_checked = REQUEST_OBJECT_AUDIENCE_CHECKED
580
+ obj.access_token_for_external_attachment_embedded = ACCESS_TOKEN_FOR_EXTERNAL_ATTACHMENT_EMBEDDED
545
581
  end
546
582
 
547
583
 
@@ -681,6 +717,15 @@ class ServiceTest < Minitest::Test
681
717
  assert_equal DCR_SCOPE_USED_AS_REQUESTABLE, obj.dcrScopeUsedAsRequestable
682
718
  assert_equal PREDEFINED_TRANSFORMED_CLAIMS, obj.predefined_transformed_claims
683
719
  assert_equal LOOPBACK_REDIRECTION_URI_VARIABLE, obj.loopback_redirection_uri_variable
720
+ assert_equal SUPPORTED_DOCUMENTS, obj.supported_documents
721
+ assert_equal SUPPORTED_DOCUMENTS_METHODS, obj.supported_documents_methods
722
+ assert_equal SUPPORTED_DOCUMENTS_VALIDATION_METHODS, obj.supported_documents_validation_methods
723
+ assert_equal SUPPORTED_DOCUMENTS_VERIFICATION_METHODS, obj.supported_documents_verification_methods
724
+ assert_equal SUPPORTED_ELECTRONIC_RECORDS, obj.supported_electronic_records
725
+ assert_equal SUPPORTED_ATTACHMENTS, obj.supported_attachments
726
+ assert_equal SUPPORTED_DIGEST_ALGORITHMS, obj.supported_digest_algorithms
727
+ assert_equal REQUEST_OBJECT_AUDIENCE_CHECKED, obj.request_object_audience_checked
728
+ assert_equal ACCESS_TOKEN_FOR_EXTERNAL_ATTACHMENT_EMBEDDED, obj.access_token_for_external_attachment_embedded
684
729
  end
685
730
 
686
731
 
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.14.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiko Kawasaki
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-12-13 00:00:00.000000000 Z
12
+ date: 2022-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client