authlete 1.31.0 → 1.33.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 +18 -0
- data/lib/authlete/version.rb +1 -1
- data/test/authlete/model/test_service.rb +22 -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: ccc118a0411d0f279c37cdf396890204b6dc2945e493e8212e0d79fe4b80f86a
|
4
|
+
data.tar.gz: a12839904cbe50b4f779a985b75e66c89d12e12bb6ddafe48549434b749b777e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee57a1108376bccec407dd7c0fa1072fe81504dcc46f9872e1daef051b200c6508e26ee03966a78c5cd7e4dc2a34277ea6ec2935a13d21d29cce4f82eb1ffe7c
|
7
|
+
data.tar.gz: b095e4010c3b0890e9b33473fcf745e43b910901e90a9f8aa8b7a7a7e636323c3996de46bfe9e4e8cdec11d0e61c6c86ced93e52d926cabcc748bdece3450a92
|
@@ -619,6 +619,18 @@ module Authlete
|
|
619
619
|
alias_method :id_token_aud_type, :idTokenAudType
|
620
620
|
alias_method :id_token_aud_type=, :idTokenAudType=
|
621
621
|
|
622
|
+
attr_accessor :verifiedClaimsValidationSchemaSet
|
623
|
+
alias_method :verified_claims_validation_schema_set, :verifiedClaimsValidationSchemaSet
|
624
|
+
alias_method :verified_claims_validation_schema_set=, :verifiedClaimsValidationSchemaSet=
|
625
|
+
|
626
|
+
attr_accessor :credentialDuration
|
627
|
+
alias_method :credential_duration, :credentialDuration
|
628
|
+
alias_method :credential_duration=, :credentialDuration=
|
629
|
+
|
630
|
+
attr_accessor :credentialJwks
|
631
|
+
alias_method :credential_jwks, :credentialJwks
|
632
|
+
alias_method :credential_jwks=, :credentialJwks=
|
633
|
+
|
622
634
|
private
|
623
635
|
|
624
636
|
def defaults
|
@@ -776,6 +788,9 @@ module Authlete
|
|
776
788
|
openidDroppedOnRefreshWithoutOfflineAccess: false,
|
777
789
|
supportedDocumentsCheckMethods: nil,
|
778
790
|
idTokenAudType: nil,
|
791
|
+
verifiedClaimsValidationSchemaSet: nil,
|
792
|
+
credentialDuration: nil,
|
793
|
+
credentialJwks: nil,
|
779
794
|
}
|
780
795
|
end
|
781
796
|
|
@@ -933,6 +948,9 @@ module Authlete
|
|
933
948
|
@openidDroppedOnRefreshWithoutOfflineAccess = hash[:openidDroppedOnRefreshWithoutOfflineAccess]
|
934
949
|
@supportedDocumentsCheckMethods = hash[:supportedDocumentsCheckMethods]
|
935
950
|
@idTokenAudType = hash[:idTokenAudType]
|
951
|
+
@verifiedClaimsValidationSchemaSet = hash[:verifiedClaimsValidationSchemaSet]
|
952
|
+
@credentialDuration = hash[:credentialDuration]
|
953
|
+
@credentialJwks = hash[:credentialJwks]
|
936
954
|
|
937
955
|
end
|
938
956
|
|
data/lib/authlete/version.rb
CHANGED
@@ -197,6 +197,11 @@ class ServiceTest < Minitest::Test
|
|
197
197
|
OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS = false
|
198
198
|
SUPPORTED_DOCUMENTS_CHECK_METHODS = ['supported', 'documents']
|
199
199
|
ID_TOKEN_AUD_TYPE = '<id-token-aud-type>'
|
200
|
+
VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET = '<verified_claims_validation_schema_set>'
|
201
|
+
|
202
|
+
CREDENTIAL_DURATION = 100
|
203
|
+
CREDENTIAL_JWKS = '<credential-duration>'
|
204
|
+
|
200
205
|
|
201
206
|
def generate_json
|
202
207
|
return <<~JSON
|
@@ -353,7 +358,11 @@ class ServiceTest < Minitest::Test
|
|
353
358
|
"dcrDuplicateSoftwareIdBlocked": false,
|
354
359
|
"openidDroppedOnRefreshWithoutOfflineAccess": false,
|
355
360
|
"supportedDocumentsCheckMethods": ["supported","documents"],
|
356
|
-
"idTokenAudType": "<id-token-aud-type>"
|
361
|
+
"idTokenAudType": "<id-token-aud-type>",
|
362
|
+
"verifiedClaimsValidationSchemaSet": "<verified_claims_validation_schema_set>",
|
363
|
+
|
364
|
+
"credentialDuration": 100,
|
365
|
+
"credentialJwks": "<credential-duration>"
|
357
366
|
}
|
358
367
|
JSON
|
359
368
|
|
@@ -514,7 +523,10 @@ class ServiceTest < Minitest::Test
|
|
514
523
|
dcrDuplicateSoftwareIdBlocked: false,
|
515
524
|
openidDroppedOnRefreshWithoutOfflineAccess: false,
|
516
525
|
supportedDocumentsCheckMethods: ['supported', 'documents'],
|
517
|
-
idTokenAudType: '<id-token-aud-type>'
|
526
|
+
idTokenAudType: '<id-token-aud-type>',
|
527
|
+
verifiedClaimsValidationSchemaSet: '<verified_claims_validation_schema_set>',
|
528
|
+
credentialDuration: 100,
|
529
|
+
credentialJwks: '<credential-duration>',
|
518
530
|
}
|
519
531
|
end
|
520
532
|
|
@@ -671,6 +683,10 @@ class ServiceTest < Minitest::Test
|
|
671
683
|
obj.openidDroppedOnRefreshWithoutOfflineAccess = OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS
|
672
684
|
obj.supported_documents_check_methods = SUPPORTED_DOCUMENTS_CHECK_METHODS
|
673
685
|
obj.id_token_aud_type = ID_TOKEN_AUD_TYPE
|
686
|
+
obj.verified_claims_validation_schema_set = VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET
|
687
|
+
obj.credential_duration = CREDENTIAL_DURATION
|
688
|
+
obj.credential_jwks = CREDENTIAL_JWKS
|
689
|
+
|
674
690
|
end
|
675
691
|
|
676
692
|
def match(obj)
|
@@ -842,6 +858,10 @@ class ServiceTest < Minitest::Test
|
|
842
858
|
assert_equal OPENID_DROPPED_ON_REFRESH_WITHOUT_OFFLINE_ACCESS, obj.openidDroppedOnRefreshWithoutOfflineAccess
|
843
859
|
assert_equal SUPPORTED_DOCUMENTS_CHECK_METHODS, obj.supported_documents_check_methods
|
844
860
|
assert_equal ID_TOKEN_AUD_TYPE, obj.id_token_aud_type
|
861
|
+
assert_equal VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET, obj.verified_claims_validation_schema_set
|
862
|
+
assert_equal CREDENTIAL_DURATION, obj.credentialDuration
|
863
|
+
assert_equal CREDENTIAL_JWKS, obj.credentialJwks
|
864
|
+
|
845
865
|
end
|
846
866
|
|
847
867
|
|
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.33.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-
|
13
|
+
date: 2023-06-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|