authlete 1.5.0 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2ca52fa804eaf60526090d4a67f0bd58d7506f1
4
- data.tar.gz: c11e0b38dfbdb86d692f80974da747bcbb4da08f
3
+ metadata.gz: 2b4318223c4e735d9cbb20176a5c25ebc2cc6fd1
4
+ data.tar.gz: 1790dcb25d2578bdbbf285c0b148ba7466406507
5
5
  SHA512:
6
- metadata.gz: b283a768346ce2d52886eff2f21eed21b42e4c9dd613d5f71ec7f3e13cf1f887527116a196a215a0b9b76b39648c1491d0263d1659abd42b6fb7f6cc66df2feb
7
- data.tar.gz: 0ea49960df2f63a727deb350e2abbdc5475c63ae55b40b38a4a14001137d20724e522755efccc930e4ed547ccef4f0a6e4d2193e57857b74cfa47144ee5ecf2d
6
+ metadata.gz: b94c98082cd69cb784574864c1495752569d94b733fa25f937c9a89be66fff70889ec9a608fb51a3d499bfafadbffda7d5ac09c8154c66334f582fc63898de80
7
+ data.tar.gz: fc18bd54086e012d2a3e612070f507cb47fae1a1bacc745af8708c7c43ed973fa61e0178c77e6f80155906bc25cc8b89f80a95551fae399882a7df406e26f663
@@ -441,6 +441,10 @@ module Authlete
441
441
  alias_method :supported_custom_client_metadata, :supportedCustomClientMetadata
442
442
  alias_method :supported_custom_client_metadata=, :supportedCustomClientMetadata=
443
443
 
444
+ attr_accessor :tokenExpirationLinked
445
+ alias_method :token_expiration_linked, :tokenExpirationLinked
446
+ alias_method :token_expiration_linked=, :tokenExpirationLinked=
447
+
444
448
  private
445
449
 
446
450
  def defaults
@@ -552,7 +556,8 @@ module Authlete
552
556
  nbfOptional: false,
553
557
  issSuppressed: false,
554
558
  attributes: nil,
555
- supportedCustomClientMetadata: nil
559
+ supportedCustomClientMetadata: nil,
560
+ tokenExpirationLinked: false
556
561
  }
557
562
  end
558
563
 
@@ -665,6 +670,7 @@ module Authlete
665
670
  @issSuppressed = hash[:issSuppressed]
666
671
  @attributes = get_parsed_array(hash[:attributes]) { |e| Authlete::Model::Pair.parse(e) }
667
672
  @supportedCustomClientMetadata = hash[:supportedCustomClientMetadata]
673
+ @tokenExpirationLinked = hash[:tokenExpirationLinked]
668
674
  end
669
675
 
670
676
  def to_hash_value(key, var)
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.5.0"
19
+ VERSION = "1.6.0"
20
20
  end
@@ -143,6 +143,7 @@ class ServiceTest < Minitest::Test
143
143
  ATTRIBUTE_VALUE = '<attribute0-value>'
144
144
  ATTRIBUTES = [ Authlete::Model::Pair.new(key: ATTRIBUTE_KEY, value: ATTRIBUTE_VALUE) ]
145
145
  SUPPORTED_CUSTOM_CLIENT_METADATA = [ '<supported-custom-client-metadata0>', '<supported-custom-client-metadata1>' ]
146
+ TOKEN_EXPIRATION_LINKED = false
146
147
 
147
148
 
148
149
  def generate_json
@@ -255,7 +256,8 @@ class ServiceTest < Minitest::Test
255
256
  "nbfOptional": true,
256
257
  "issSuppressed": false,
257
258
  "attributes": [{ "key": "<attribute0-key>", "value": "<attribute0-value>" }],
258
- "supportedCustomClientMetadata": [ "<supported-custom-client-metadata0>", "<supported-custom-client-metadata1>" ]
259
+ "supportedCustomClientMetadata": [ "<supported-custom-client-metadata0>", "<supported-custom-client-metadata1>" ],
260
+ "tokenExpirationLinked": false
259
261
  }
260
262
  JSON
261
263
  end
@@ -370,7 +372,8 @@ class ServiceTest < Minitest::Test
370
372
  nbfOptional: true,
371
373
  issSuppressed: false,
372
374
  attributes: [{ key: '<attribute0-key>', value: '<attribute0-value>' }],
373
- supportedCustomClientMetadata: [ '<supported-custom-client-metadata0>', '<supported-custom-client-metadata1>' ]
375
+ supportedCustomClientMetadata: [ '<supported-custom-client-metadata0>', '<supported-custom-client-metadata1>' ],
376
+ tokenExpirationLinked: false
374
377
  }
375
378
  end
376
379
 
@@ -484,6 +487,7 @@ class ServiceTest < Minitest::Test
484
487
  obj.iss_suppressed = ISS_SUPPRESSED
485
488
  obj.attributes = ATTRIBUTES
486
489
  obj.supported_custom_client_metadata = SUPPORTED_CUSTOM_CLIENT_METADATA
490
+ obj.token_expiration_linked = TOKEN_EXPIRATION_LINKED
487
491
  end
488
492
 
489
493
 
@@ -604,6 +608,7 @@ class ServiceTest < Minitest::Test
604
608
  assert_equal ATTRIBUTE_KEY, obj.attributes[0].key
605
609
  assert_equal ATTRIBUTE_VALUE, obj.attributes[0].value
606
610
  assert_equal SUPPORTED_CUSTOM_CLIENT_METADATA, obj.supportedCustomClientMetadata
611
+ assert_equal TOKEN_EXPIRATION_LINKED, obj.tokenExpirationLinked
607
612
  end
608
613
 
609
614
 
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.5.0
4
+ version: 1.6.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-06-21 00:00:00.000000000 Z
12
+ date: 2021-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client