authlete 1.14.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 +4 -4
- data/lib/authlete/model/client.rb +6 -1
- data/lib/authlete/model/service.rb +43 -1
- data/lib/authlete/version.rb +1 -1
- data/test/authlete/model/test_client.rb +7 -3
- data/test/authlete/model/test_service.rb +37 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bee5128a1d1f17669350fbec41d157f661158af5c1f7d246c9c3d79a88668e6f
|
|
4
|
+
data.tar.gz: e5e91e58a957349b7a5c8662dad635e596956faae38368a76c3db3feef1813bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)
|
|
@@ -490,6 +490,34 @@ 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
|
+
|
|
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=
|
|
493
521
|
private
|
|
494
522
|
|
|
495
523
|
def defaults
|
|
@@ -614,7 +642,14 @@ module Authlete
|
|
|
614
642
|
unauthorizedOnClientConfigSupported: false,
|
|
615
643
|
dcrScopeUsedAsRequestable: false,
|
|
616
644
|
predefinedTransformedClaims: nil,
|
|
617
|
-
loopbackRedirectionUriVariable: false
|
|
645
|
+
loopbackRedirectionUriVariable: false,
|
|
646
|
+
supportedDocuments: nil,
|
|
647
|
+
supportedDocumentsMethods: nil,
|
|
648
|
+
supportedDocumentsValidationMethods: nil,
|
|
649
|
+
supportedDocumentsVerificationMethods: nil,
|
|
650
|
+
supportedElectronicRecords: nil,
|
|
651
|
+
supportedAttachments: nil,
|
|
652
|
+
supportedDigestAlgorithms: nil,
|
|
618
653
|
}
|
|
619
654
|
end
|
|
620
655
|
|
|
@@ -740,6 +775,13 @@ module Authlete
|
|
|
740
775
|
@dcrScopeUsedAsRequestable = hash[:dcrScopeUsedAsRequestable]
|
|
741
776
|
@predefinedTransformedClaims = hash[:predefinedTransformedClaims]
|
|
742
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]
|
|
743
785
|
end
|
|
744
786
|
|
|
745
787
|
def to_hash_value(key, var)
|
data/lib/authlete/version.rb
CHANGED
|
@@ -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,13 @@ 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>']
|
|
166
173
|
|
|
167
174
|
def generate_json
|
|
168
175
|
return <<~JSON
|
|
@@ -287,7 +294,14 @@ class ServiceTest < Minitest::Test
|
|
|
287
294
|
"unauthorizedOnClientConfigSupported": false,
|
|
288
295
|
"dcrScopeUsedAsRequestable": false,
|
|
289
296
|
"predefinedTransformedClaims": "<predefined_transformed_claims>",
|
|
290
|
-
"loopbackRedirectionUriVariable": false
|
|
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>"]
|
|
291
305
|
}
|
|
292
306
|
JSON
|
|
293
307
|
end
|
|
@@ -415,7 +429,14 @@ class ServiceTest < Minitest::Test
|
|
|
415
429
|
unauthorizedOnClientConfigSupported: false,
|
|
416
430
|
dcrScopeUsedAsRequestable: false,
|
|
417
431
|
predefinedTransformedClaims: '<predefined_transformed_claims>',
|
|
418
|
-
loopbackRedirectionUriVariable: false
|
|
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>']
|
|
419
440
|
}
|
|
420
441
|
end
|
|
421
442
|
|
|
@@ -542,6 +563,13 @@ class ServiceTest < Minitest::Test
|
|
|
542
563
|
obj.dcr_scope_used_as_requestable = DCR_SCOPE_USED_AS_REQUESTABLE
|
|
543
564
|
obj.predefined_transformed_claims = PREDEFINED_TRANSFORMED_CLAIMS
|
|
544
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
|
|
545
573
|
end
|
|
546
574
|
|
|
547
575
|
|
|
@@ -681,6 +709,13 @@ class ServiceTest < Minitest::Test
|
|
|
681
709
|
assert_equal DCR_SCOPE_USED_AS_REQUESTABLE, obj.dcrScopeUsedAsRequestable
|
|
682
710
|
assert_equal PREDEFINED_TRANSFORMED_CLAIMS, obj.predefined_transformed_claims
|
|
683
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
|
|
684
719
|
end
|
|
685
720
|
|
|
686
721
|
|
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.
|
|
4
|
+
version: 1.15.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:
|
|
12
|
+
date: 2022-02-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-client
|