authlete 1.12.0 → 1.16.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: bb4bdadefe54f6a79f7e2ac56347c7bd5fecfaf14c7146651102c0e3935c5569
4
- data.tar.gz: c2bc50e71cfbd4a8b660592312072fcf5dd5ed51022dfd47bcd7ea6508fe3d5d
3
+ metadata.gz: 172c177900d3821bc89e822e2c3d5318ad25b35e1a068485e05717c15e50b606
4
+ data.tar.gz: 1177bc0a1270134b5e14f0bf109e7e3d42bc0c03152545bde26392d786387aaa
5
5
  SHA512:
6
- metadata.gz: e9036c2ed22054fe9a066fc07ff03ff8d0c8df72279df272a5c68e56950430174a9d7ffacd608b7a1011badee4573a8c7349cf92a761874fdd3d4ef5337381fb
7
- data.tar.gz: 5754256d8e533a0fc52cf0a8e04f6794222b085b3eb717ef080f8e994a1c6651017d42f16115841c64cbfb5ddfcfbca2d73909663a30068b7b1eb8ca527f58e2
6
+ metadata.gz: d86dbb06ee29f1d84de8d303db432f08c21ee5279465675a1f4c7ba3b3ba156a9bc4a3f645986af3f2b4bd252a463a1c62a5e3d31f845cbb1cbdb60fc0192b0a
7
+ data.tar.gz: 52814554bf0020b1a24d2eac94b05db73045c01e160174b6f3047eb1ae432814d583160ede895135d7d2042317028ad970a07564d181e822a5f40dc77fac0591
@@ -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)
@@ -482,6 +482,46 @@ module Authlete
482
482
  attr_accessor :dcrScopeUsedAsRequestable
483
483
  alias_method :dcr_scope_used_as_requestable, :dcrScopeUsedAsRequestable
484
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=
521
+
522
+ attr_accessor :requestObjectAudienceChecked
523
+ alias_method :request_object_audience_checked, :requestObjectAudienceChecked
524
+ alias_method :request_object_audience_checked=, :requestObjectAudienceChecked=
485
525
  private
486
526
 
487
527
  def defaults
@@ -604,7 +644,17 @@ module Authlete
604
644
  grantManagementEndpoint: nil,
605
645
  grantManagementActionRequired: false,
606
646
  unauthorizedOnClientConfigSupported: false,
607
- dcrScopeUsedAsRequestable: false
647
+ dcrScopeUsedAsRequestable: false,
648
+ predefinedTransformedClaims: nil,
649
+ loopbackRedirectionUriVariable: false,
650
+ supportedDocuments: nil,
651
+ supportedDocumentsMethods: nil,
652
+ supportedDocumentsValidationMethods: nil,
653
+ supportedDocumentsVerificationMethods: nil,
654
+ supportedElectronicRecords: nil,
655
+ supportedAttachments: nil,
656
+ supportedDigestAlgorithms: nil,
657
+ requestObjectAudienceChecked: false,
608
658
  }
609
659
  end
610
660
 
@@ -728,6 +778,16 @@ module Authlete
728
778
  @grantManagementActionRequired = hash[:grantManagementActionRequired]
729
779
  @unauthorizedOnClientConfigSupported = hash[:unauthorizedOnClientConfigSupported]
730
780
  @dcrScopeUsedAsRequestable = hash[:dcrScopeUsedAsRequestable]
781
+ @predefinedTransformedClaims = hash[:predefinedTransformedClaims]
782
+ @loopbackRedirectionUriVariable = hash[:loopbackRedirectionUriVariable]
783
+ @supportedDocuments = hash[:supportedDocuments]
784
+ @supportedDocumentsMethods = hash[:supportedDocumentsMethods]
785
+ @supportedDocumentsValidationMethods = hash[:supportedDocumentsValidationMethods]
786
+ @supportedDocumentsVerificationMethods = hash[:supportedDocumentsVerificationMethods]
787
+ @supportedElectronicRecords = hash[:supportedElectronicRecords]
788
+ @supportedAttachments = hash[:supportedAttachments]
789
+ @supportedDigestAlgorithms = hash[:supportedDigestAlgorithms]
790
+ @requestObjectAudienceChecked = hash[:requestObjectAudienceChecked]
731
791
  end
732
792
 
733
793
  def to_hash_value(key, var)
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.12.0"
19
+ VERSION = "1.16.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
 
@@ -161,6 +161,16 @@ class ServiceTest < Minitest::Test
161
161
  GRANT_MANAGEMENT_ACTION_REQUIRED = false
162
162
  UNATHORIZED_ON_CLIENT_CONFIG_SUPPORTED = false
163
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>']
173
+ REQUEST_OBJECT_AUDIENCE_CHECKED = true
164
174
 
165
175
  def generate_json
166
176
  return <<~JSON
@@ -283,7 +293,17 @@ class ServiceTest < Minitest::Test
283
293
  "grantManagementEndpoint": "<grant-management-endpoint>",
284
294
  "grantManagementActionRequired": false,
285
295
  "unauthorizedOnClientConfigSupported": false,
286
- "dcrScopeUsedAsRequestable": false
296
+ "dcrScopeUsedAsRequestable": false,
297
+ "predefinedTransformedClaims": "<predefined_transformed_claims>",
298
+ "loopbackRedirectionUriVariable": false,
299
+ "supportedDocuments": ["<supported-documents1>", "<supported-documents1>"],
300
+ "supportedDocumentsMethods": ["<supported-documents-methods1>", "<supported-documents-methods1>"],
301
+ "supportedDocumentsValidationMethods": ["<supported-documents-validation-methods1>", "<supported-documents-validation-methods1>"],
302
+ "supportedDocumentsVerificationMethods": ["<supported-documents-verification-methods1>", "<supported-documents-verification-methods1>"],
303
+ "supportedElectronicRecords": ["<supported-electronic-records1>", "<supported-electronic-records1>"],
304
+ "supportedAttachments": [ "EMBEDDED", "EXTERNAL"],
305
+ "supportedDigestAlgorithms": ["<supported-digest-algorithms1>", "<supported-digest-algorithms1>"],
306
+ "requestObjectAudienceChecked": true
287
307
  }
288
308
  JSON
289
309
  end
@@ -409,7 +429,17 @@ class ServiceTest < Minitest::Test
409
429
  grantManagementEndpoint: '<grant-management-endpoint>',
410
430
  grantManagementActionRequired: false,
411
431
  unauthorizedOnClientConfigSupported: false,
412
- dcrScopeUsedAsRequestable: false
432
+ dcrScopeUsedAsRequestable: false,
433
+ predefinedTransformedClaims: '<predefined_transformed_claims>',
434
+ loopbackRedirectionUriVariable: false,
435
+ supportedDocuments: ['<supported-documents1>', '<supported-documents1>'],
436
+ supportedDocumentsMethods: ['<supported-documents-methods1>', '<supported-documents-methods1>'],
437
+ supportedDocumentsValidationMethods: ['<supported-documents-validation-methods1>', '<supported-documents-validation-methods1>'],
438
+ supportedDocumentsVerificationMethods: ['<supported-documents-verification-methods1>', '<supported-documents-verification-methods1>'],
439
+ supportedElectronicRecords: ['<supported-electronic-records1>', '<supported-electronic-records1>'],
440
+ supportedAttachments: [ 'EMBEDDED', 'EXTERNAL'],
441
+ supportedDigestAlgorithms: ['<supported-digest-algorithms1>', '<supported-digest-algorithms1>'],
442
+ requestObjectAudienceChecked: true
413
443
  }
414
444
  end
415
445
 
@@ -534,6 +564,16 @@ class ServiceTest < Minitest::Test
534
564
  obj.grant_management_action_required = GRANT_MANAGEMENT_ACTION_REQUIRED
535
565
  obj.unauthorized_on_client_config_supported = UNATHORIZED_ON_CLIENT_CONFIG_SUPPORTED
536
566
  obj.dcr_scope_used_as_requestable = DCR_SCOPE_USED_AS_REQUESTABLE
567
+ obj.predefined_transformed_claims = PREDEFINED_TRANSFORMED_CLAIMS
568
+ obj.loopback_redirection_uri_variable = LOOPBACK_REDIRECTION_URI_VARIABLE
569
+ obj.supported_documents = SUPPORTED_DOCUMENTS
570
+ obj.supported_documents_methods = SUPPORTED_DOCUMENTS_METHODS
571
+ obj.supported_documents_validation_methods = SUPPORTED_DOCUMENTS_VALIDATION_METHODS
572
+ obj.supported_documents_verification_methods = SUPPORTED_DOCUMENTS_VERIFICATION_METHODS
573
+ obj.supported_electronic_records = SUPPORTED_ELECTRONIC_RECORDS
574
+ obj.supported_attachments = SUPPORTED_ATTACHMENTS
575
+ obj.supported_digest_algorithms = SUPPORTED_DIGEST_ALGORITHMS
576
+ obj.request_object_audience_checked = REQUEST_OBJECT_AUDIENCE_CHECKED
537
577
  end
538
578
 
539
579
 
@@ -671,6 +711,16 @@ class ServiceTest < Minitest::Test
671
711
  assert_equal GRANT_MANAGEMENT_ACTION_REQUIRED, obj.grantManagementActionRequired
672
712
  assert_equal UNATHORIZED_ON_CLIENT_CONFIG_SUPPORTED, obj.unauthorizedOnClientConfigSupported
673
713
  assert_equal DCR_SCOPE_USED_AS_REQUESTABLE, obj.dcrScopeUsedAsRequestable
714
+ assert_equal PREDEFINED_TRANSFORMED_CLAIMS, obj.predefined_transformed_claims
715
+ assert_equal LOOPBACK_REDIRECTION_URI_VARIABLE, obj.loopback_redirection_uri_variable
716
+ assert_equal SUPPORTED_DOCUMENTS, obj.supported_documents
717
+ assert_equal SUPPORTED_DOCUMENTS_METHODS, obj.supported_documents_methods
718
+ assert_equal SUPPORTED_DOCUMENTS_VALIDATION_METHODS, obj.supported_documents_validation_methods
719
+ assert_equal SUPPORTED_DOCUMENTS_VERIFICATION_METHODS, obj.supported_documents_verification_methods
720
+ assert_equal SUPPORTED_ELECTRONIC_RECORDS, obj.supported_electronic_records
721
+ assert_equal SUPPORTED_ATTACHMENTS, obj.supported_attachments
722
+ assert_equal SUPPORTED_DIGEST_ALGORITHMS, obj.supported_digest_algorithms
723
+ assert_equal REQUEST_OBJECT_AUDIENCE_CHECKED, obj.request_object_audience_checked
674
724
  end
675
725
 
676
726
 
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.12.0
4
+ version: 1.16.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-22 00:00:00.000000000 Z
12
+ date: 2022-02-14 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: