authlete 1.32.0 → 1.33.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/service.rb +12 -0
- data/lib/authlete/version.rb +1 -1
- data/test/authlete/model/test_service.rb +15 -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
|
|
@@ -623,6 +623,14 @@ module Authlete
|
|
|
623
623
|
alias_method :verified_claims_validation_schema_set, :verifiedClaimsValidationSchemaSet
|
|
624
624
|
alias_method :verified_claims_validation_schema_set=, :verifiedClaimsValidationSchemaSet=
|
|
625
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
|
+
|
|
626
634
|
private
|
|
627
635
|
|
|
628
636
|
def defaults
|
|
@@ -781,6 +789,8 @@ module Authlete
|
|
|
781
789
|
supportedDocumentsCheckMethods: nil,
|
|
782
790
|
idTokenAudType: nil,
|
|
783
791
|
verifiedClaimsValidationSchemaSet: nil,
|
|
792
|
+
credentialDuration: nil,
|
|
793
|
+
credentialJwks: nil,
|
|
784
794
|
}
|
|
785
795
|
end
|
|
786
796
|
|
|
@@ -939,6 +949,8 @@ module Authlete
|
|
|
939
949
|
@supportedDocumentsCheckMethods = hash[:supportedDocumentsCheckMethods]
|
|
940
950
|
@idTokenAudType = hash[:idTokenAudType]
|
|
941
951
|
@verifiedClaimsValidationSchemaSet = hash[:verifiedClaimsValidationSchemaSet]
|
|
952
|
+
@credentialDuration = hash[:credentialDuration]
|
|
953
|
+
@credentialJwks = hash[:credentialJwks]
|
|
942
954
|
|
|
943
955
|
end
|
|
944
956
|
|
data/lib/authlete/version.rb
CHANGED
|
@@ -199,6 +199,10 @@ class ServiceTest < Minitest::Test
|
|
|
199
199
|
ID_TOKEN_AUD_TYPE = '<id-token-aud-type>'
|
|
200
200
|
VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET = '<verified_claims_validation_schema_set>'
|
|
201
201
|
|
|
202
|
+
CREDENTIAL_DURATION = 100
|
|
203
|
+
CREDENTIAL_JWKS = '<credential-duration>'
|
|
204
|
+
|
|
205
|
+
|
|
202
206
|
def generate_json
|
|
203
207
|
return <<~JSON
|
|
204
208
|
{
|
|
@@ -355,7 +359,10 @@ class ServiceTest < Minitest::Test
|
|
|
355
359
|
"openidDroppedOnRefreshWithoutOfflineAccess": false,
|
|
356
360
|
"supportedDocumentsCheckMethods": ["supported","documents"],
|
|
357
361
|
"idTokenAudType": "<id-token-aud-type>",
|
|
358
|
-
"verifiedClaimsValidationSchemaSet": "<verified_claims_validation_schema_set>"
|
|
362
|
+
"verifiedClaimsValidationSchemaSet": "<verified_claims_validation_schema_set>",
|
|
363
|
+
|
|
364
|
+
"credentialDuration": 100,
|
|
365
|
+
"credentialJwks": "<credential-duration>"
|
|
359
366
|
}
|
|
360
367
|
JSON
|
|
361
368
|
|
|
@@ -518,7 +525,8 @@ class ServiceTest < Minitest::Test
|
|
|
518
525
|
supportedDocumentsCheckMethods: ['supported', 'documents'],
|
|
519
526
|
idTokenAudType: '<id-token-aud-type>',
|
|
520
527
|
verifiedClaimsValidationSchemaSet: '<verified_claims_validation_schema_set>',
|
|
521
|
-
|
|
528
|
+
credentialDuration: 100,
|
|
529
|
+
credentialJwks: '<credential-duration>',
|
|
522
530
|
}
|
|
523
531
|
end
|
|
524
532
|
|
|
@@ -676,6 +684,8 @@ class ServiceTest < Minitest::Test
|
|
|
676
684
|
obj.supported_documents_check_methods = SUPPORTED_DOCUMENTS_CHECK_METHODS
|
|
677
685
|
obj.id_token_aud_type = ID_TOKEN_AUD_TYPE
|
|
678
686
|
obj.verified_claims_validation_schema_set = VERIFIED_CLAIMS_VALIDATION_SCHEMA_SET
|
|
687
|
+
obj.credential_duration = CREDENTIAL_DURATION
|
|
688
|
+
obj.credential_jwks = CREDENTIAL_JWKS
|
|
679
689
|
|
|
680
690
|
end
|
|
681
691
|
|
|
@@ -849,6 +859,9 @@ class ServiceTest < Minitest::Test
|
|
|
849
859
|
assert_equal SUPPORTED_DOCUMENTS_CHECK_METHODS, obj.supported_documents_check_methods
|
|
850
860
|
assert_equal ID_TOKEN_AUD_TYPE, obj.id_token_aud_type
|
|
851
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
|
+
|
|
852
865
|
end
|
|
853
866
|
|
|
854
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
|