authlete 1.8.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 164290174c960b47c0108dbde641e0c01e37f38b2bdbafa9f36fcbb68f5dd053
4
- data.tar.gz: 625eba82bcdee17d39a2635199e6228e6e9a001729fdf64a1343c486ecd23998
3
+ metadata.gz: bb4bdadefe54f6a79f7e2ac56347c7bd5fecfaf14c7146651102c0e3935c5569
4
+ data.tar.gz: c2bc50e71cfbd4a8b660592312072fcf5dd5ed51022dfd47bcd7ea6508fe3d5d
5
5
  SHA512:
6
- metadata.gz: 9a5224c845954deb1f327f7c726c5c61368800563225abe58190208bbd18a158764d656dff2576816faf1ef13772153004beb77dbd7555b9a587c6ddeb2df74a
7
- data.tar.gz: 6a51b9016c348e583f1d5b43285c021aea1e60d6d3371a059d997f12e731cedc70dca2d5bdf883657c815d609fd3ea5ed293ddecbafb67f20a39d9dfb04ccd4b
6
+ metadata.gz: e9036c2ed22054fe9a066fc07ff03ff8d0c8df72279df272a5c68e56950430174a9d7ffacd608b7a1011badee4573a8c7349cf92a761874fdd3d4ef5337381fb
7
+ data.tar.gz: 5754256d8e533a0fc52cf0a8e04f6794222b085b3eb717ef080f8e994a1c6651017d42f16115841c64cbfb5ddfcfbca2d73909663a30068b7b1eb8ca527f58e2
data/authlete.gemspec CHANGED
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_runtime_dependency "rest-client", ">= 1.7.2"
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.7"
24
- spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "bundler", ">= 2.2.10"
24
+ spec.add_development_dependency "rake", ">= 12.3.3"
25
25
  end
@@ -463,6 +463,25 @@ module Authlete
463
463
  alias_method :hsm_enabled, :hsmEnabled
464
464
  alias_method :hsm_enabled=, :hsmEnabled=
465
465
 
466
+ attr_accessor :refreshTokenDurationReset
467
+ alias_method :refresh_token_duration_reset, :refreshTokenDurationReset
468
+ alias_method :refresh_token_duration_reset=, :refreshTokenDurationReset=
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=
477
+
478
+ attr_accessor :unauthorizedOnClientConfigSupported
479
+ alias_method :unauthorized_on_client_config_supported, :unauthorizedOnClientConfigSupported
480
+ alias_method :unauthorized_on_client_config_supported=, :unauthorizedOnClientConfigSupported=
481
+
482
+ attr_accessor :dcrScopeUsedAsRequestable
483
+ alias_method :dcr_scope_used_as_requestable, :dcrScopeUsedAsRequestable
484
+ alias_method :dcr_scope_used_as_requestable=, :dcrScopeUsedAsRequestable=
466
485
  private
467
486
 
468
487
  def defaults
@@ -580,7 +599,12 @@ module Authlete
580
599
  requestObjectEncryptionAlgMatchRequired: false,
581
600
  requestObjectEncryptionEncMatchRequired: false,
582
601
  hsks: nil,
583
- hsmEnabled: false
602
+ hsmEnabled: false,
603
+ refreshTokenDurationReset: false,
604
+ grantManagementEndpoint: nil,
605
+ grantManagementActionRequired: false,
606
+ unauthorizedOnClientConfigSupported: false,
607
+ dcrScopeUsedAsRequestable: false
584
608
  }
585
609
  end
586
610
 
@@ -699,6 +723,11 @@ module Authlete
699
723
  @requestObjectEncryptionEncMatchRequired = hash[:requestObjectEncryptionEncMatchRequired]
700
724
  @hsks = get_parsed_array(hash[:hsks]) { |e| Authlete::Model::Hsk.parse(e) }
701
725
  @hsmEnabled = hash[:hsmEnabled]
726
+ @refreshTokenDurationReset = hash[:refreshTokenDurationReset]
727
+ @grantManagementEndpoint = hash[:grantManagementEndpoint]
728
+ @grantManagementActionRequired = hash[:grantManagementActionRequired]
729
+ @unauthorizedOnClientConfigSupported = hash[:unauthorizedOnClientConfigSupported]
730
+ @dcrScopeUsedAsRequestable = hash[:dcrScopeUsedAsRequestable]
702
731
  end
703
732
 
704
733
  def to_hash_value(key, var)
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.8.0"
19
+ VERSION = "1.12.0"
20
20
  end
@@ -156,7 +156,11 @@ class ServiceTest < Minitest::Test
156
156
  HSKS_PUBLICKEY = '<public-key>'
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
+ GRANT_MANAGEMENT_ENDPOINT = '<grant-management-endpoint>'
161
+ GRANT_MANAGEMENT_ACTION_REQUIRED = false
162
+ UNATHORIZED_ON_CLIENT_CONFIG_SUPPORTED = false
163
+ DCR_SCOPE_USED_AS_REQUESTABLE = false
160
164
 
161
165
  def generate_json
162
166
  return <<~JSON
@@ -274,7 +278,12 @@ class ServiceTest < Minitest::Test
274
278
  "tokenExpirationLinked": false,
275
279
  "frontChannelRequestObjectEncryptionRequired": false,
276
280
  "requestObjectEncryptionAlgMatchRequired": false,
277
- "requestObjectEncryptionEncMatchRequired": false
281
+ "requestObjectEncryptionEncMatchRequired": false,
282
+ "refreshTokenDurationReset": false,
283
+ "grantManagementEndpoint": "<grant-management-endpoint>",
284
+ "grantManagementActionRequired": false,
285
+ "unauthorizedOnClientConfigSupported": false,
286
+ "dcrScopeUsedAsRequestable": false
278
287
  }
279
288
  JSON
280
289
  end
@@ -395,7 +404,12 @@ class ServiceTest < Minitest::Test
395
404
  requestObjectEncryptionAlgMatchRequired: false,
396
405
  requestObjectEncryptionEncMatchRequired: false,
397
406
  hsks: [ { kty: 'EC', use: 'sig', alg: 'ES256', kid: 'jane', hsmName: 'google', handle: '<handle>', publicKey: '<public-key>' } ],
398
- hsmEnabled: false
407
+ hsmEnabled: false,
408
+ refreshTokenDurationReset: false,
409
+ grantManagementEndpoint: '<grant-management-endpoint>',
410
+ grantManagementActionRequired: false,
411
+ unauthorizedOnClientConfigSupported: false,
412
+ dcrScopeUsedAsRequestable: false
399
413
  }
400
414
  end
401
415
 
@@ -515,6 +529,11 @@ class ServiceTest < Minitest::Test
515
529
  obj.requestObjectEncryptionEncMatchRequired = REQUEST_OBJECT_ENCRYPTION_ENC_MATCH_REQUIRED
516
530
  obj.hsks = HSKS
517
531
  obj.hsm_enabled = HSM_ENABLED
532
+ obj.refresh_token_duration_reset = REFRESH_TOKEN_DURATION_RESET
533
+ obj.grant_management_endpoint = GRANT_MANAGEMENT_ENDPOINT
534
+ obj.grant_management_action_required = GRANT_MANAGEMENT_ACTION_REQUIRED
535
+ obj.unauthorized_on_client_config_supported = UNATHORIZED_ON_CLIENT_CONFIG_SUPPORTED
536
+ obj.dcr_scope_used_as_requestable = DCR_SCOPE_USED_AS_REQUESTABLE
518
537
  end
519
538
 
520
539
 
@@ -647,6 +666,11 @@ class ServiceTest < Minitest::Test
647
666
  assert_equal HSKS_HANDLE, obj.hsks[0].handle
648
667
  assert_equal HSKS_PUBLICKEY, obj.hsks[0].publicKey
649
668
  assert_equal HSM_ENABLED, obj.hsmEnabled
669
+ assert_equal REFRESH_TOKEN_DURATION_RESET, obj.refreshTokenDurationReset
670
+ assert_equal GRANT_MANAGEMENT_ENDPOINT, obj.grantManagementEndpoint
671
+ assert_equal GRANT_MANAGEMENT_ACTION_REQUIRED, obj.grantManagementActionRequired
672
+ assert_equal UNATHORIZED_ON_CLIENT_CONFIG_SUPPORTED, obj.unauthorizedOnClientConfigSupported
673
+ assert_equal DCR_SCOPE_USED_AS_REQUESTABLE, obj.dcrScopeUsedAsRequestable
650
674
  end
651
675
 
652
676
 
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.8.0
4
+ version: 1.12.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-07-08 00:00:00.000000000 Z
12
+ date: 2021-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -29,30 +29,30 @@ dependencies:
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '1.7'
34
+ version: 2.2.10
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '1.7'
41
+ version: 2.2.10
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: '10.0'
48
+ version: 12.3.3
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '10.0'
55
+ version: 12.3.3
56
56
  description: A library for Authlete Web APIs. See https://docs.authlete.com/ for details.
57
57
  email:
58
58
  - admin@authlete.com