authlete 1.9.0 → 1.10.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 -1
- data/lib/authlete/version.rb +1 -1
- data/test/authlete/model/test_service.rb +12 -3
- 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: f49201aa56f63fd8b3061917ba4f6bb5b9d4ff12dff4651ef1f124076ae41a9c
|
4
|
+
data.tar.gz: b05fafd6b3b9c50274b7571a92824d200eb255330eacadefdee4089a18327c16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 580c8997cc0d8cfad9925f5adcb27b8d22a520d5e10956cce6bb2bfa7ec574d2c4d1fecfc88a112aa4bf93f77cb2fc63a28ca742ad472919ae7627049b727ab6
|
7
|
+
data.tar.gz: 3ef6fc77cb49700340a1b9ed7b5bb112ea578d0b28f6d8fe491a9dc5059845d73abee73fb7ff1a7a4344f9c09647b6a7d82c46b888314af8814b6bce592fc7b6
|
@@ -467,6 +467,13 @@ module Authlete
|
|
467
467
|
alias_method :refresh_token_duration_reset, :refreshTokenDurationReset
|
468
468
|
alias_method :refresh_token_duration_reset=, :refreshTokenDurationReset=
|
469
469
|
|
470
|
+
attr_accessor :grantManagementEndpoint
|
471
|
+
alias_method :grant_management_endpoint, :grantManagementEndpoint
|
472
|
+
alias_method :grant_management_endpoint=, :grantManagementEndpoint=
|
473
|
+
|
474
|
+
attr_accessor :grantManagementActionRequired
|
475
|
+
alias_method :grant_management_action_required, :grantManagementActionRequired
|
476
|
+
alias_method :grant_management_action_required=, :grantManagementActionRequired=
|
470
477
|
private
|
471
478
|
|
472
479
|
def defaults
|
@@ -585,7 +592,9 @@ module Authlete
|
|
585
592
|
requestObjectEncryptionEncMatchRequired: false,
|
586
593
|
hsks: nil,
|
587
594
|
hsmEnabled: false,
|
588
|
-
refreshTokenDurationReset: false
|
595
|
+
refreshTokenDurationReset: false,
|
596
|
+
grantManagementEndpoint: nil,
|
597
|
+
grantManagementActionRequired: false,
|
589
598
|
}
|
590
599
|
end
|
591
600
|
|
@@ -705,6 +714,8 @@ module Authlete
|
|
705
714
|
@hsks = get_parsed_array(hash[:hsks]) { |e| Authlete::Model::Hsk.parse(e) }
|
706
715
|
@hsmEnabled = hash[:hsmEnabled]
|
707
716
|
@refreshTokenDurationReset = hash[:refreshTokenDurationReset]
|
717
|
+
@grantManagementEndpoint = hash[:grantManagementEndpoint]
|
718
|
+
@grantManagementActionRequired = hash[:grantManagementActionRequired]
|
708
719
|
end
|
709
720
|
|
710
721
|
def to_hash_value(key, var)
|
data/lib/authlete/version.rb
CHANGED
@@ -157,7 +157,8 @@ class ServiceTest < Minitest::Test
|
|
157
157
|
HSKS = [ Authlete::Model::Hsk.new(kty: HSKS_KTY, use: HSKS_USE, alg: HSKS_ALG, kid: HSKS_KID, hsmName: HSKS_HSMNAME, handle: HSKS_HANDLE, publicKey: HSKS_PUBLICKEY) ]
|
158
158
|
HSM_ENABLED = false
|
159
159
|
REFRESH_TOKEN_DURATION_RESET = false
|
160
|
-
|
160
|
+
GRANT_MANAGEMENT_ENDPOINT = '<grant-management-endpoint>'
|
161
|
+
GRANT_MANAGEMENT_ACTION_REQUIRED = false
|
161
162
|
|
162
163
|
def generate_json
|
163
164
|
return <<~JSON
|
@@ -276,7 +277,9 @@ class ServiceTest < Minitest::Test
|
|
276
277
|
"frontChannelRequestObjectEncryptionRequired": false,
|
277
278
|
"requestObjectEncryptionAlgMatchRequired": false,
|
278
279
|
"requestObjectEncryptionEncMatchRequired": false,
|
279
|
-
"refreshTokenDurationReset": false
|
280
|
+
"refreshTokenDurationReset": false,
|
281
|
+
"grantManagementEndpoint": "<grant-management-endpoint>",
|
282
|
+
"grantManagementActionRequired": false
|
280
283
|
}
|
281
284
|
JSON
|
282
285
|
end
|
@@ -398,7 +401,9 @@ class ServiceTest < Minitest::Test
|
|
398
401
|
requestObjectEncryptionEncMatchRequired: false,
|
399
402
|
hsks: [ { kty: 'EC', use: 'sig', alg: 'ES256', kid: 'jane', hsmName: 'google', handle: '<handle>', publicKey: '<public-key>' } ],
|
400
403
|
hsmEnabled: false,
|
401
|
-
refreshTokenDurationReset: false
|
404
|
+
refreshTokenDurationReset: false,
|
405
|
+
grantManagementEndpoint: '<grant-management-endpoint>',
|
406
|
+
grantManagementActionRequired: false,
|
402
407
|
}
|
403
408
|
end
|
404
409
|
|
@@ -519,6 +524,8 @@ class ServiceTest < Minitest::Test
|
|
519
524
|
obj.hsks = HSKS
|
520
525
|
obj.hsm_enabled = HSM_ENABLED
|
521
526
|
obj.refresh_token_duration_reset = REFRESH_TOKEN_DURATION_RESET
|
527
|
+
obj.grant_management_endpoint = GRANT_MANAGEMENT_ENDPOINT
|
528
|
+
obj.grant_management_action_required = GRANT_MANAGEMENT_ACTION_REQUIRED
|
522
529
|
end
|
523
530
|
|
524
531
|
|
@@ -652,6 +659,8 @@ class ServiceTest < Minitest::Test
|
|
652
659
|
assert_equal HSKS_PUBLICKEY, obj.hsks[0].publicKey
|
653
660
|
assert_equal HSM_ENABLED, obj.hsmEnabled
|
654
661
|
assert_equal REFRESH_TOKEN_DURATION_RESET, obj.refreshTokenDurationReset
|
662
|
+
assert_equal GRANT_MANAGEMENT_ENDPOINT, obj.grantManagementEndpoint
|
663
|
+
assert_equal GRANT_MANAGEMENT_ACTION_REQUIRED, obj.grantManagementActionRequired
|
655
664
|
end
|
656
665
|
|
657
666
|
|
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.10.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: 2021-
|
12
|
+
date: 2021-10-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|