authlete 1.24.0 → 1.25.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 -6
- 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: 79ece9b673c6fac13369ab9c416eb10bb32042187c6a715255aa4b57431a8e04
|
4
|
+
data.tar.gz: '079c970bf19094115267b90ec8bcb3bcba325344b1f5fbe1cd57dea9961f7ca9'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d5bf5c451530b58976fa7cacccd92bb3b5783789ad3dea8d20acc5b5efada2138a3bb7874eaffab2b82b22de9e859d6b10f25ae95b608ae0b5b7c71d0f528c0
|
7
|
+
data.tar.gz: d79415db8c6cdc3e2b595f7e7848af757f260658eef5329533bef8c6019921070ee3ab589534222fc6284ebb747e363d9b32f7e44fd77073ce3713761b0a0acd
|
@@ -595,6 +595,14 @@ module Authlete
|
|
595
595
|
alias_method :jwt_grant_unsigned_jwt_rejected, :jwtGrantUnsignedJwtRejected
|
596
596
|
alias_method :jwt_grant_unsigned_jwt_rejected=, :jwtGrantUnsignedJwtRejected=
|
597
597
|
|
598
|
+
attr_accessor :federationSignatureKeyId
|
599
|
+
alias_method :federation_signature_key_id, :federationSignatureKeyId
|
600
|
+
alias_method :federation_signature_key_id=, :federationSignatureKeyId=
|
601
|
+
|
602
|
+
attr_accessor :federationConfigurationDuration
|
603
|
+
alias_method :federation_configuration_duration, :federationConfigurationDuration
|
604
|
+
alias_method :federation_configuration_duration=, :federationConfigurationDuration=
|
605
|
+
|
598
606
|
private
|
599
607
|
|
600
608
|
def defaults
|
@@ -746,6 +754,8 @@ module Authlete
|
|
746
754
|
jwtGrantByIdentifiableClientsOnly: false,
|
747
755
|
jwtGrantEncryptedJwtRejected: false,
|
748
756
|
jwtGrantUnsignedJwtRejected: false,
|
757
|
+
federationSignatureKeyId: nil,
|
758
|
+
federationConfigurationDuration: 0,
|
749
759
|
}
|
750
760
|
end
|
751
761
|
|
@@ -897,6 +907,8 @@ module Authlete
|
|
897
907
|
@jwtGrantByIdentifiableClientsOnly = hash[:jwtGrantByIdentifiableClientsOnly]
|
898
908
|
@jwtGrantEncryptedJwtRejected = hash[:jwtGrantEncryptedJwtRejected]
|
899
909
|
@jwtGrantUnsignedJwtRejected = hash[:jwtGrantUnsignedJwtRejected]
|
910
|
+
@federationSignatureKeyId = hash[:federationSignatureKeyId]
|
911
|
+
@federationConfigurationDuration = hash[:federationConfigurationDuration]
|
900
912
|
|
901
913
|
end
|
902
914
|
|
data/lib/authlete/version.rb
CHANGED
@@ -191,6 +191,8 @@ class ServiceTest < Minitest::Test
|
|
191
191
|
JWT_GRANT_BY_IDENTIFIABLE_CLIENTS_ONLY = false
|
192
192
|
JWT_GRANT_ENCRYPTED_JWT_REJECTED = false
|
193
193
|
JWT_GRANT_UNSIGNED_JWT_REJECTED = false
|
194
|
+
FEDERATION_SIGNATURE_KEY_ID = '<federation-signature-key-id>'
|
195
|
+
FEDERATION_CONFIGURATION_DURATION = 100
|
194
196
|
|
195
197
|
def generate_json
|
196
198
|
return <<~JSON
|
@@ -341,7 +343,9 @@ class ServiceTest < Minitest::Test
|
|
341
343
|
"tokenExchangeUnsignedJwtRejected": false,
|
342
344
|
"jwtGrantByIdentifiableClientsOnly": false,
|
343
345
|
"jwtGrantEncryptedJwtRejected": false,
|
344
|
-
"jwtGrantUnsignedJwtRejected": false
|
346
|
+
"jwtGrantUnsignedJwtRejected": false,
|
347
|
+
"federationSignatureKeyId": "<federation-signature-key-id>",
|
348
|
+
"federationConfigurationDuration": 100
|
345
349
|
}
|
346
350
|
JSON
|
347
351
|
|
@@ -496,7 +500,9 @@ class ServiceTest < Minitest::Test
|
|
496
500
|
tokenExchangeUnsignedJwtRejected: false,
|
497
501
|
jwtGrantByIdentifiableClientsOnly: false,
|
498
502
|
jwtGrantEncryptedJwtRejected: false,
|
499
|
-
jwtGrantUnsignedJwtRejected: false
|
503
|
+
jwtGrantUnsignedJwtRejected: false,
|
504
|
+
federationSignatureKeyId: '<federation-signature-key-id>',
|
505
|
+
federationConfigurationDuration: 100
|
500
506
|
}
|
501
507
|
end
|
502
508
|
|
@@ -644,12 +650,13 @@ class ServiceTest < Minitest::Test
|
|
644
650
|
obj.token_exchange_by_identifiable_clients_only = TOKEN_EXCHANGE_BY_IDENTIFIABLE_CLIENTS_ONLY
|
645
651
|
obj.token_exchange_by_confidential_clients_only = TOKEN_EXCHANGE_BY_CONFIDENTIAL_CLIENTS_ONLY
|
646
652
|
obj.token_exchange_by_permitted_clients_only = TOKEN_EXCHANGE_BY_PERMITTED_CLIENTS_ONLY
|
647
|
-
obj.
|
648
|
-
obj.
|
649
|
-
obj.
|
653
|
+
obj.jwt_grant_by_identifiable_clients_only = JWT_GRANT_BY_IDENTIFIABLE_CLIENTS_ONLY
|
654
|
+
obj.jwt_grant_encrypted_jwt_rejected = JWT_GRANT_ENCRYPTED_JWT_REJECTED
|
655
|
+
obj.jwt_grant_unsigned_jwt_rejected = JWT_GRANT_UNSIGNED_JWT_REJECTED
|
656
|
+
obj.federation_signature_key_id = FEDERATION_SIGNATURE_KEY_ID
|
657
|
+
obj.federation_configuration_duration = FEDERATION_CONFIGURATION_DURATION
|
650
658
|
end
|
651
659
|
|
652
|
-
|
653
660
|
def match(obj)
|
654
661
|
assert_equal NUMBER, obj.number
|
655
662
|
assert_equal SERVICE_OWNER_NUMBER, obj.serviceOwnerNumber
|
@@ -813,6 +820,8 @@ class ServiceTest < Minitest::Test
|
|
813
820
|
assert_equal JWT_GRANT_BY_IDENTIFIABLE_CLIENTS_ONLY, obj.jwtGrantByIdentifiableClientsOnly
|
814
821
|
assert_equal JWT_GRANT_ENCRYPTED_JWT_REJECTED, obj.jwtGrantEncryptedJwtRejected
|
815
822
|
assert_equal JWT_GRANT_UNSIGNED_JWT_REJECTED, obj.jwtGrantUnsignedJwtRejected
|
823
|
+
assert_equal FEDERATION_SIGNATURE_KEY_ID, obj.federationSignatureKeyId
|
824
|
+
assert_equal FEDERATION_CONFIGURATION_DURATION, obj.federationConfigurationDuration
|
816
825
|
end
|
817
826
|
|
818
827
|
|
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.25.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-08-
|
12
|
+
date: 2022-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|