authlete 1.15.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/authlete/model/service.rb +6 -0
- data/lib/authlete/version.rb +1 -1
- data/test/authlete/model/test_service.rb +9 -4
- 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: 172c177900d3821bc89e822e2c3d5318ad25b35e1a068485e05717c15e50b606
|
4
|
+
data.tar.gz: 1177bc0a1270134b5e14f0bf109e7e3d42bc0c03152545bde26392d786387aaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d86dbb06ee29f1d84de8d303db432f08c21ee5279465675a1f4c7ba3b3ba156a9bc4a3f645986af3f2b4bd252a463a1c62a5e3d31f845cbb1cbdb60fc0192b0a
|
7
|
+
data.tar.gz: 52814554bf0020b1a24d2eac94b05db73045c01e160174b6f3047eb1ae432814d583160ede895135d7d2042317028ad970a07564d181e822a5f40dc77fac0591
|
@@ -518,6 +518,10 @@ module Authlete
|
|
518
518
|
attr_accessor :supportedDigestAlgorithms
|
519
519
|
alias_method :supported_digest_algorithms, :supportedDigestAlgorithms
|
520
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=
|
521
525
|
private
|
522
526
|
|
523
527
|
def defaults
|
@@ -650,6 +654,7 @@ module Authlete
|
|
650
654
|
supportedElectronicRecords: nil,
|
651
655
|
supportedAttachments: nil,
|
652
656
|
supportedDigestAlgorithms: nil,
|
657
|
+
requestObjectAudienceChecked: false,
|
653
658
|
}
|
654
659
|
end
|
655
660
|
|
@@ -782,6 +787,7 @@ module Authlete
|
|
782
787
|
@supportedElectronicRecords = hash[:supportedElectronicRecords]
|
783
788
|
@supportedAttachments = hash[:supportedAttachments]
|
784
789
|
@supportedDigestAlgorithms = hash[:supportedDigestAlgorithms]
|
790
|
+
@requestObjectAudienceChecked = hash[:requestObjectAudienceChecked]
|
785
791
|
end
|
786
792
|
|
787
793
|
def to_hash_value(key, var)
|
data/lib/authlete/version.rb
CHANGED
@@ -167,9 +167,10 @@ class ServiceTest < Minitest::Test
|
|
167
167
|
SUPPORTED_DOCUMENTS_METHODS = ['<supported-documents-methods1>', '<supported-documents-methods1>']
|
168
168
|
SUPPORTED_DOCUMENTS_VALIDATION_METHODS = ['<supported-documents-validation-methods1>', '<supported-documents-validation-methods1>']
|
169
169
|
SUPPORTED_DOCUMENTS_VERIFICATION_METHODS = ['<supported-documents-verification-methods1>', '<supported-documents-verification-methods1>']
|
170
|
-
SUPPORTED_ELECTRONIC_RECORDS
|
170
|
+
SUPPORTED_ELECTRONIC_RECORDS = ['<supported-electronic-records1>', '<supported-electronic-records1>']
|
171
171
|
SUPPORTED_ATTACHMENTS = [ 'EMBEDDED', 'EXTERNAL']
|
172
172
|
SUPPORTED_DIGEST_ALGORITHMS = ['<supported-digest-algorithms1>', '<supported-digest-algorithms1>']
|
173
|
+
REQUEST_OBJECT_AUDIENCE_CHECKED = true
|
173
174
|
|
174
175
|
def generate_json
|
175
176
|
return <<~JSON
|
@@ -301,7 +302,8 @@ class ServiceTest < Minitest::Test
|
|
301
302
|
"supportedDocumentsVerificationMethods": ["<supported-documents-verification-methods1>", "<supported-documents-verification-methods1>"],
|
302
303
|
"supportedElectronicRecords": ["<supported-electronic-records1>", "<supported-electronic-records1>"],
|
303
304
|
"supportedAttachments": [ "EMBEDDED", "EXTERNAL"],
|
304
|
-
"supportedDigestAlgorithms": ["<supported-digest-algorithms1>", "<supported-digest-algorithms1>"]
|
305
|
+
"supportedDigestAlgorithms": ["<supported-digest-algorithms1>", "<supported-digest-algorithms1>"],
|
306
|
+
"requestObjectAudienceChecked": true
|
305
307
|
}
|
306
308
|
JSON
|
307
309
|
end
|
@@ -436,7 +438,8 @@ class ServiceTest < Minitest::Test
|
|
436
438
|
supportedDocumentsVerificationMethods: ['<supported-documents-verification-methods1>', '<supported-documents-verification-methods1>'],
|
437
439
|
supportedElectronicRecords: ['<supported-electronic-records1>', '<supported-electronic-records1>'],
|
438
440
|
supportedAttachments: [ 'EMBEDDED', 'EXTERNAL'],
|
439
|
-
supportedDigestAlgorithms: ['<supported-digest-algorithms1>', '<supported-digest-algorithms1>']
|
441
|
+
supportedDigestAlgorithms: ['<supported-digest-algorithms1>', '<supported-digest-algorithms1>'],
|
442
|
+
requestObjectAudienceChecked: true
|
440
443
|
}
|
441
444
|
end
|
442
445
|
|
@@ -567,9 +570,10 @@ class ServiceTest < Minitest::Test
|
|
567
570
|
obj.supported_documents_methods = SUPPORTED_DOCUMENTS_METHODS
|
568
571
|
obj.supported_documents_validation_methods = SUPPORTED_DOCUMENTS_VALIDATION_METHODS
|
569
572
|
obj.supported_documents_verification_methods = SUPPORTED_DOCUMENTS_VERIFICATION_METHODS
|
570
|
-
obj.supported_electronic_records
|
573
|
+
obj.supported_electronic_records = SUPPORTED_ELECTRONIC_RECORDS
|
571
574
|
obj.supported_attachments = SUPPORTED_ATTACHMENTS
|
572
575
|
obj.supported_digest_algorithms = SUPPORTED_DIGEST_ALGORITHMS
|
576
|
+
obj.request_object_audience_checked = REQUEST_OBJECT_AUDIENCE_CHECKED
|
573
577
|
end
|
574
578
|
|
575
579
|
|
@@ -716,6 +720,7 @@ class ServiceTest < Minitest::Test
|
|
716
720
|
assert_equal SUPPORTED_ELECTRONIC_RECORDS, obj.supported_electronic_records
|
717
721
|
assert_equal SUPPORTED_ATTACHMENTS, obj.supported_attachments
|
718
722
|
assert_equal SUPPORTED_DIGEST_ALGORITHMS, obj.supported_digest_algorithms
|
723
|
+
assert_equal REQUEST_OBJECT_AUDIENCE_CHECKED, obj.request_object_audience_checked
|
719
724
|
end
|
720
725
|
|
721
726
|
|
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.16.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: 2022-02-
|
12
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|