authlete 1.30.0 → 1.32.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 +12 -0
- data/lib/authlete/version.rb +1 -1
- data/test/authlete/model/test_service.rb +14 -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: d4792a4186318c1bf3776efeae28c45ddd11dc5d1c73b2e5766bb15e42406d3e
|
4
|
+
data.tar.gz: ea95479a617e5e6ecef95e8ef9102d7ac6371fcc31956943d63791200b5f53bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f53f3a30898b6dedaa7bb4c103640b55d2fbc9895cdd3b34233105b4496d1502e23b3036da8c4d644dd11097f291d79777dfb61b2dfd7373a40340579e9f58da
|
7
|
+
data.tar.gz: dde70917acb4d54814d3637adc8dafb81a41b71f5840fe95d9e7eb7bb001eb08713b5482cd9a0f997123617beba7722e155091ffd2e9c6be6e2ef1b256f210e1
|
@@ -615,6 +615,14 @@ module Authlete
|
|
615
615
|
alias_method :supported_documents_check_methods, :supportedDocumentsCheckMethods
|
616
616
|
alias_method :supported_documents_check_methods=, :supportedDocumentsCheckMethods=
|
617
617
|
|
618
|
+
attr_accessor :idTokenAudType
|
619
|
+
alias_method :id_token_aud_type, :idTokenAudType
|
620
|
+
alias_method :id_token_aud_type=, :idTokenAudType=
|
621
|
+
|
622
|
+
attr_accessor :verifiedClaimsValidationSchemaSet
|
623
|
+
alias_method :verified_claims_validation_schema_set, :verifiedClaimsValidationSchemaSet
|
624
|
+
alias_method :verified_claims_validation_schema_set=, :verifiedClaimsValidationSchemaSet=
|
625
|
+
|
618
626
|
private
|
619
627
|
|
620
628
|
def defaults
|
@@ -771,6 +779,8 @@ module Authlete
|
|
771
779
|
dcrDuplicateSoftwareIdBlocked: false,
|
772
780
|
openidDroppedOnRefreshWithoutOfflineAccess: false,
|
773
781
|
supportedDocumentsCheckMethods: nil,
|
782
|
+
idTokenAudType: nil,
|
783
|
+
verifiedClaimsValidationSchemaSet: nil,
|
774
784
|
}
|
775
785
|
end
|
776
786
|
|
@@ -927,6 +937,8 @@ module Authlete
|
|
927
937
|
@dcrDuplicateSoftwareIdBlocked = hash[:dcrDuplicateSoftwareIdBlocked]
|
928
938
|
@openidDroppedOnRefreshWithoutOfflineAccess = hash[:openidDroppedOnRefreshWithoutOfflineAccess]
|
929
939
|
@supportedDocumentsCheckMethods = hash[:supportedDocumentsCheckMethods]
|
940
|
+
@idTokenAudType = hash[:idTokenAudType]
|
941
|
+
@verifiedClaimsValidationSchemaSet = hash[:verifiedClaimsValidationSchemaSet]
|
930
942
|
|
931
943
|
end
|
932
944
|
|
data/lib/authlete/version.rb
CHANGED
@@ -196,6 +196,8 @@ class ServiceTest < Minitest::Test
|
|
196
196
|
DCR_DUPLICATE_SOFTWARE_ID_BLOCKED = false
|
197
197
|
OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS = false
|
198
198
|
SUPPORTED_DOCUMENTS_CHECK_METHODS = ['supported', 'documents']
|
199
|
+
ID_TOKEN_AUD_TYPE = '<id-token-aud-type>'
|
200
|
+
VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET = '<verified_claims_validation_schema_set>'
|
199
201
|
|
200
202
|
def generate_json
|
201
203
|
return <<~JSON
|
@@ -351,7 +353,9 @@ class ServiceTest < Minitest::Test
|
|
351
353
|
"federationConfigurationDuration": 100,
|
352
354
|
"dcrDuplicateSoftwareIdBlocked": false,
|
353
355
|
"openidDroppedOnRefreshWithoutOfflineAccess": false,
|
354
|
-
"supportedDocumentsCheckMethods": ["supported","documents"]
|
356
|
+
"supportedDocumentsCheckMethods": ["supported","documents"],
|
357
|
+
"idTokenAudType": "<id-token-aud-type>",
|
358
|
+
"verifiedClaimsValidationSchemaSet": "<verified_claims_validation_schema_set>"
|
355
359
|
}
|
356
360
|
JSON
|
357
361
|
|
@@ -511,7 +515,10 @@ class ServiceTest < Minitest::Test
|
|
511
515
|
federationConfigurationDuration: 100,
|
512
516
|
dcrDuplicateSoftwareIdBlocked: false,
|
513
517
|
openidDroppedOnRefreshWithoutOfflineAccess: false,
|
514
|
-
supportedDocumentsCheckMethods: ['supported', 'documents']
|
518
|
+
supportedDocumentsCheckMethods: ['supported', 'documents'],
|
519
|
+
idTokenAudType: '<id-token-aud-type>',
|
520
|
+
verifiedClaimsValidationSchemaSet: '<verified_claims_validation_schema_set>',
|
521
|
+
|
515
522
|
}
|
516
523
|
end
|
517
524
|
|
@@ -667,6 +674,9 @@ class ServiceTest < Minitest::Test
|
|
667
674
|
obj.dcr_duplicate_software_id_blocked = DCR_DUPLICATE_SOFTWARE_ID_BLOCKED
|
668
675
|
obj.openidDroppedOnRefreshWithoutOfflineAccess = OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS
|
669
676
|
obj.supported_documents_check_methods = SUPPORTED_DOCUMENTS_CHECK_METHODS
|
677
|
+
obj.id_token_aud_type = ID_TOKEN_AUD_TYPE
|
678
|
+
obj.verified_claims_validation_schema_set = VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET
|
679
|
+
|
670
680
|
end
|
671
681
|
|
672
682
|
def match(obj)
|
@@ -837,6 +847,8 @@ class ServiceTest < Minitest::Test
|
|
837
847
|
assert_equal DCR_DUPLICATE_SOFTWARE_ID_BLOCKED, obj.dcrDuplicateSoftwareIdBlocked
|
838
848
|
assert_equal OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS, obj.openidDroppedOnRefreshWithoutOfflineAccess
|
839
849
|
assert_equal SUPPORTED_DOCUMENTS_CHECK_METHODS, obj.supported_documents_check_methods
|
850
|
+
assert_equal ID_TOKEN_AUD_TYPE, obj.id_token_aud_type
|
851
|
+
assert_equal VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET, obj.verified_claims_validation_schema_set
|
840
852
|
end
|
841
853
|
|
842
854
|
|
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.32.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: 2023-04-
|
13
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|