authlete 1.28.0 → 1.29.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 +7 -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: 4697a779cb153a49007965bd9e2d4271240ff44def6ad927fd620d10da02fbfd
|
4
|
+
data.tar.gz: e64c960b201cd23bef4587058984382642de2c54d0d51707dac4f3595a50e2eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 253c088dae1177e94f5585471ef642399ed309b6452066a1691fc093d1bae8355fabf952739fd0cd3de068016d6293340dc6032d8d4713f323e69ba0aa7a49e3
|
7
|
+
data.tar.gz: ae51b81acf5d3fa470e65f217a5869db0062dd19acfc1a39c7fd87de6067509cf765e01ecd871e927c97b65cf6cd9d330b9f4adb8a733c36b59dbd6c3a9f0faf
|
@@ -611,6 +611,10 @@ module Authlete
|
|
611
611
|
alias_method :openid_dropped_on_refresh_without_offline_access, :openidDroppedOnRefreshWithoutOfflineAccess
|
612
612
|
alias_method :openid_dropped_on_refresh_without_offline_access=, :openidDroppedOnRefreshWithoutOfflineAccess=
|
613
613
|
|
614
|
+
attr_accessor :supportedDocumentsCheckMethods
|
615
|
+
alias_method :supported_documents_check_methods, :supportedDocumentsCheckMethods
|
616
|
+
alias_method :supported_documents_check_methods=, :supportedDocumentsCheckMethods=
|
617
|
+
|
614
618
|
private
|
615
619
|
|
616
620
|
def defaults
|
@@ -766,6 +770,7 @@ module Authlete
|
|
766
770
|
federationConfigurationDuration: 0,
|
767
771
|
dcrDuplicateSoftwareIdBlocked: false,
|
768
772
|
openidDroppedOnRefreshWithoutOfflineAccess: false,
|
773
|
+
supportedDocumentsCheckMethods: nil,
|
769
774
|
}
|
770
775
|
end
|
771
776
|
|
@@ -921,6 +926,7 @@ module Authlete
|
|
921
926
|
@federationConfigurationDuration = hash[:federationConfigurationDuration]
|
922
927
|
@dcrDuplicateSoftwareIdBlocked = hash[:dcrDuplicateSoftwareIdBlocked]
|
923
928
|
@openidDroppedOnRefreshWithoutOfflineAccess = hash[:openidDroppedOnRefreshWithoutOfflineAccess]
|
929
|
+
@supportedDocumentsCheckMethods = hash[:supportedDocumentsCheckMethods]
|
924
930
|
|
925
931
|
end
|
926
932
|
|
data/lib/authlete/version.rb
CHANGED
@@ -195,6 +195,7 @@ class ServiceTest < Minitest::Test
|
|
195
195
|
FEDERATION_CONFIGURATION_DURATION = 100
|
196
196
|
DCR_DUPLICATE_SOFTWARE_ID_BLOCKED = false
|
197
197
|
OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS = false
|
198
|
+
SUPPORTED_DOCUMENTS_CHECK_METHODS = ['supported', 'documents']
|
198
199
|
|
199
200
|
def generate_json
|
200
201
|
return <<~JSON
|
@@ -349,7 +350,8 @@ class ServiceTest < Minitest::Test
|
|
349
350
|
"federationSignatureKeyId": "<federation-signature-key-id>",
|
350
351
|
"federationConfigurationDuration": 100,
|
351
352
|
"dcrDuplicateSoftwareIdBlocked": false,
|
352
|
-
"openidDroppedOnRefreshWithoutOfflineAccess": false
|
353
|
+
"openidDroppedOnRefreshWithoutOfflineAccess": false,
|
354
|
+
"supportedDocumentsCheckMethods": ["supported","documents"]
|
353
355
|
}
|
354
356
|
JSON
|
355
357
|
|
@@ -508,7 +510,8 @@ class ServiceTest < Minitest::Test
|
|
508
510
|
federationSignatureKeyId: '<federation-signature-key-id>',
|
509
511
|
federationConfigurationDuration: 100,
|
510
512
|
dcrDuplicateSoftwareIdBlocked: false,
|
511
|
-
openidDroppedOnRefreshWithoutOfflineAccess: false
|
513
|
+
openidDroppedOnRefreshWithoutOfflineAccess: false,
|
514
|
+
supportedDocumentsCheckMethods: ['supported', 'documents']
|
512
515
|
}
|
513
516
|
end
|
514
517
|
|
@@ -663,6 +666,7 @@ class ServiceTest < Minitest::Test
|
|
663
666
|
obj.federation_configuration_duration = FEDERATION_CONFIGURATION_DURATION
|
664
667
|
obj.dcr_duplicate_software_id_blocked = DCR_DUPLICATE_SOFTWARE_ID_BLOCKED
|
665
668
|
obj.openidDroppedOnRefreshWithoutOfflineAccess = OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS
|
669
|
+
obj.supported_documents_check_methods = SUPPORTED_DOCUMENTS_CHECK_METHODS
|
666
670
|
end
|
667
671
|
|
668
672
|
def match(obj)
|
@@ -832,6 +836,7 @@ class ServiceTest < Minitest::Test
|
|
832
836
|
assert_equal FEDERATION_CONFIGURATION_DURATION, obj.federationConfigurationDuration
|
833
837
|
assert_equal DCR_DUPLICATE_SOFTWARE_ID_BLOCKED, obj.dcrDuplicateSoftwareIdBlocked
|
834
838
|
assert_equal OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS, obj.openidDroppedOnRefreshWithoutOfflineAccess
|
839
|
+
assert_equal SUPPORTED_DOCUMENTS_CHECK_METHODS, obj.supported_documents_check_methods
|
835
840
|
end
|
836
841
|
|
837
842
|
|
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.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takahiko Kawasaki
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-12-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|