authlete 1.24.0 → 1.26.1
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/client.rb +2 -1
- data/lib/authlete/model/service.rb +18 -0
- data/lib/authlete/version.rb +1 -1
- data/test/authlete/model/test_client.rb +0 -1
- data/test/authlete/model/test_service.rb +20 -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: 5c0a0d1cdf37a68632b896d2e69f2d9a40b9e5465cf30de8fc5ca1c42ac8fd8a
|
4
|
+
data.tar.gz: ff5bda944050f3ca97696573c3c7b45f4b958bf233135db376c85c09c0ca8ca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b58b1609f1b72fe535c5ea743db94aa111d7a2662d44d5936c879cd865544286fdbae382de7b376be5312bbfc8e2a03d2cd11dcb28be5f86fa630e034e0609f3
|
7
|
+
data.tar.gz: 9d5424767bff36a0ab39f8e9f295cdc4829fa619ecec665284cd8ed44794a7400b0f7b2205d369198846e950ba14104e7d989b0bd9bbed8695812e748e35754b
|
@@ -319,7 +319,8 @@ module Authlete
|
|
319
319
|
|
320
320
|
attr_accessor :pkceS256Required
|
321
321
|
alias_method :pkce_s256_required, :pkceS256Required
|
322
|
-
alias_method :pkce_s256_required=, :pkceS256Required=
|
322
|
+
alias_method :pkce_s256_required=, :pkceS256Required=
|
323
|
+
|
323
324
|
private
|
324
325
|
|
325
326
|
def defaults
|
@@ -595,6 +595,18 @@ 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
|
+
|
606
|
+
attr_accessor :dcrDuplicateSoftwareIdBlocked
|
607
|
+
alias_method :dcr_duplicate_software_id_blocked, :dcrDuplicateSoftwareIdBlocked
|
608
|
+
alias_method :dcr_duplicate_software_id_blocked=, :dcrDuplicateSoftwareIdBlocked=
|
609
|
+
|
598
610
|
private
|
599
611
|
|
600
612
|
def defaults
|
@@ -746,6 +758,9 @@ module Authlete
|
|
746
758
|
jwtGrantByIdentifiableClientsOnly: false,
|
747
759
|
jwtGrantEncryptedJwtRejected: false,
|
748
760
|
jwtGrantUnsignedJwtRejected: false,
|
761
|
+
federationSignatureKeyId: nil,
|
762
|
+
federationConfigurationDuration: 0,
|
763
|
+
dcrDuplicateSoftwareIdBlocked: false,
|
749
764
|
}
|
750
765
|
end
|
751
766
|
|
@@ -897,6 +912,9 @@ module Authlete
|
|
897
912
|
@jwtGrantByIdentifiableClientsOnly = hash[:jwtGrantByIdentifiableClientsOnly]
|
898
913
|
@jwtGrantEncryptedJwtRejected = hash[:jwtGrantEncryptedJwtRejected]
|
899
914
|
@jwtGrantUnsignedJwtRejected = hash[:jwtGrantUnsignedJwtRejected]
|
915
|
+
@federationSignatureKeyId = hash[:federationSignatureKeyId]
|
916
|
+
@federationConfigurationDuration = hash[:federationConfigurationDuration]
|
917
|
+
@dcrDuplicateSoftwareIdBlocked = hash[:dcrDuplicateSoftwareIdBlocked]
|
900
918
|
|
901
919
|
end
|
902
920
|
|
data/lib/authlete/version.rb
CHANGED
@@ -191,6 +191,9 @@ 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
|
196
|
+
DCR_DUPLICATE_SOFTWARE_ID_BLOCKED = false
|
194
197
|
|
195
198
|
def generate_json
|
196
199
|
return <<~JSON
|
@@ -341,7 +344,10 @@ class ServiceTest < Minitest::Test
|
|
341
344
|
"tokenExchangeUnsignedJwtRejected": false,
|
342
345
|
"jwtGrantByIdentifiableClientsOnly": false,
|
343
346
|
"jwtGrantEncryptedJwtRejected": false,
|
344
|
-
"jwtGrantUnsignedJwtRejected": false
|
347
|
+
"jwtGrantUnsignedJwtRejected": false,
|
348
|
+
"federationSignatureKeyId": "<federation-signature-key-id>",
|
349
|
+
"federationConfigurationDuration": 100,
|
350
|
+
"dcrDuplicateSoftwareIdBlocked": false
|
345
351
|
}
|
346
352
|
JSON
|
347
353
|
|
@@ -496,7 +502,10 @@ class ServiceTest < Minitest::Test
|
|
496
502
|
tokenExchangeUnsignedJwtRejected: false,
|
497
503
|
jwtGrantByIdentifiableClientsOnly: false,
|
498
504
|
jwtGrantEncryptedJwtRejected: false,
|
499
|
-
jwtGrantUnsignedJwtRejected: false
|
505
|
+
jwtGrantUnsignedJwtRejected: false,
|
506
|
+
federationSignatureKeyId: '<federation-signature-key-id>',
|
507
|
+
federationConfigurationDuration: 100,
|
508
|
+
dcrDuplicateSoftwareIdBlocked: false
|
500
509
|
}
|
501
510
|
end
|
502
511
|
|
@@ -644,12 +653,14 @@ class ServiceTest < Minitest::Test
|
|
644
653
|
obj.token_exchange_by_identifiable_clients_only = TOKEN_EXCHANGE_BY_IDENTIFIABLE_CLIENTS_ONLY
|
645
654
|
obj.token_exchange_by_confidential_clients_only = TOKEN_EXCHANGE_BY_CONFIDENTIAL_CLIENTS_ONLY
|
646
655
|
obj.token_exchange_by_permitted_clients_only = TOKEN_EXCHANGE_BY_PERMITTED_CLIENTS_ONLY
|
647
|
-
obj.
|
648
|
-
obj.
|
649
|
-
obj.
|
656
|
+
obj.jwt_grant_by_identifiable_clients_only = JWT_GRANT_BY_IDENTIFIABLE_CLIENTS_ONLY
|
657
|
+
obj.jwt_grant_encrypted_jwt_rejected = JWT_GRANT_ENCRYPTED_JWT_REJECTED
|
658
|
+
obj.jwt_grant_unsigned_jwt_rejected = JWT_GRANT_UNSIGNED_JWT_REJECTED
|
659
|
+
obj.federation_signature_key_id = FEDERATION_SIGNATURE_KEY_ID
|
660
|
+
obj.federation_configuration_duration = FEDERATION_CONFIGURATION_DURATION
|
661
|
+
obj.dcr_duplicate_software_id_blocked = DCR_DUPLICATE_SOFTWARE_ID_BLOCKED
|
650
662
|
end
|
651
663
|
|
652
|
-
|
653
664
|
def match(obj)
|
654
665
|
assert_equal NUMBER, obj.number
|
655
666
|
assert_equal SERVICE_OWNER_NUMBER, obj.serviceOwnerNumber
|
@@ -813,6 +824,9 @@ class ServiceTest < Minitest::Test
|
|
813
824
|
assert_equal JWT_GRANT_BY_IDENTIFIABLE_CLIENTS_ONLY, obj.jwtGrantByIdentifiableClientsOnly
|
814
825
|
assert_equal JWT_GRANT_ENCRYPTED_JWT_REJECTED, obj.jwtGrantEncryptedJwtRejected
|
815
826
|
assert_equal JWT_GRANT_UNSIGNED_JWT_REJECTED, obj.jwtGrantUnsignedJwtRejected
|
827
|
+
assert_equal FEDERATION_SIGNATURE_KEY_ID, obj.federationSignatureKeyId
|
828
|
+
assert_equal FEDERATION_CONFIGURATION_DURATION, obj.federationConfigurationDuration
|
829
|
+
assert_equal DCR_DUPLICATE_SOFTWARE_ID_BLOCKED, obj.dcrDuplicateSoftwareIdBlocked
|
816
830
|
end
|
817
831
|
|
818
832
|
|
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.26.1
|
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-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|