authlete 1.4.0 → 1.5.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: b21d11f2544354dc2bb87ba83acf3f985a7e086d
4
- data.tar.gz: c448e654db020f2061929ae30876635d657fbbb5
3
+ metadata.gz: a2ca52fa804eaf60526090d4a67f0bd58d7506f1
4
+ data.tar.gz: c11e0b38dfbdb86d692f80974da747bcbb4da08f
5
5
  SHA512:
6
- metadata.gz: e85e7cc3f2b6207c86d58ae854c94025bd1107e3c818ebec6a88cc1ae98dbd4cfc688bcc7cfcdf8730e628963e9dbdbe6b3f26f85e0ecb00737d626e964bae07
7
- data.tar.gz: ab1d9fb25251aad9fe904cef0f14d56230e56a15d11894b51bf172a1c282c3190fe5485ca4a898d4b394a3747c2e18158187891d2174137cf579ee040d3fa41b
6
+ metadata.gz: b283a768346ce2d52886eff2f21eed21b42e4c9dd613d5f71ec7f3e13cf1f887527116a196a215a0b9b76b39648c1491d0263d1659abd42b6fb7f6cc66df2feb
7
+ data.tar.gz: 0ea49960df2f63a727deb350e2abbdc5475c63ae55b40b38a4a14001137d20724e522755efccc930e4ed547ccef4f0a6e4d2193e57857b74cfa47144ee5ecf2d
@@ -288,6 +288,10 @@ module Authlete
288
288
  alias_method :request_object_required=, :requestObjectRequired=
289
289
 
290
290
  attr_accessor :attributes
291
+
292
+ attr_accessor :customMetadata
293
+ alias_method :custom_metadata, :customMetadata
294
+ alias_method :custom_metadata=, :customMetadata=
291
295
 
292
296
  private
293
297
 
@@ -363,7 +367,8 @@ module Authlete
363
367
  authorizationDetailsTypes: nil,
364
368
  parRequired: false,
365
369
  requestObjectRequired: false,
366
- attributes: nil
370
+ attributes: nil,
371
+ customMetadata: nil
367
372
  }
368
373
  end
369
374
 
@@ -439,6 +444,7 @@ module Authlete
439
444
  @parRequired = hash[:parRequired]
440
445
  @requestObjectRequired = hash[:requestObjectRequired]
441
446
  @attributes = get_parsed_array(hash[:attributes]) { |e| Authlete::Model::Pair.parse(e) }
447
+ @customMetadata = hash[:customMetadata]
442
448
  end
443
449
 
444
450
  def to_hash_value(key, var)
@@ -437,6 +437,10 @@ module Authlete
437
437
 
438
438
  attr_accessor :attributes
439
439
 
440
+ attr_accessor :supportedCustomClientMetadata
441
+ alias_method :supported_custom_client_metadata, :supportedCustomClientMetadata
442
+ alias_method :supported_custom_client_metadata=, :supportedCustomClientMetadata=
443
+
440
444
  private
441
445
 
442
446
  def defaults
@@ -547,7 +551,8 @@ module Authlete
547
551
  scopeRequired: false,
548
552
  nbfOptional: false,
549
553
  issSuppressed: false,
550
- attributes: nil
554
+ attributes: nil,
555
+ supportedCustomClientMetadata: nil
551
556
  }
552
557
  end
553
558
 
@@ -659,6 +664,7 @@ module Authlete
659
664
  @nbfOptional = hash[:nbfOptional]
660
665
  @issSuppressed = hash[:issSuppressed]
661
666
  @attributes = get_parsed_array(hash[:attributes]) { |e| Authlete::Model::Pair.parse(e) }
667
+ @supportedCustomClientMetadata = hash[:supportedCustomClientMetadata]
662
668
  end
663
669
 
664
670
  def to_hash_value(key, var)
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.4.0"
19
+ VERSION = "1.5.0"
20
20
  end
@@ -115,6 +115,7 @@ class ClientTest < Minitest::Test
115
115
  ATTRIBUTE_KEY = '<attribute0-key>'
116
116
  ATTRIBUTE_VALUE = '<attribute0-value>'
117
117
  ATTRIBUTES = [ Authlete::Model::Pair.new(key: ATTRIBUTE_KEY, value: ATTRIBUTE_VALUE) ]
118
+ CUSTOM_METADATA = '<custom-metadata>'
118
119
 
119
120
 
120
121
  def generate_json
@@ -195,7 +196,8 @@ class ClientTest < Minitest::Test
195
196
  "authorizationDetailsTypes": [ "<authorization-details-type0>", "<authorization-details-type1>" ],
196
197
  "parRequired": false,
197
198
  "requestObjectRequired": true,
198
- "attributes": [{ "key": "<attribute0-key>", "value": "<attribute0-value>" }]
199
+ "attributes": [{ "key": "<attribute0-key>", "value": "<attribute0-value>" }],
200
+ "customMetadata": "<custom-metadata>"
199
201
  }
200
202
  JSON
201
203
  end
@@ -278,7 +280,8 @@ class ClientTest < Minitest::Test
278
280
  authorizationDetailsTypes: [ '<authorization-details-type0>', '<authorization-details-type1>' ],
279
281
  parRequired: false,
280
282
  requestObjectRequired: true,
281
- attributes: [{ key: '<attribute0-key>', value: '<attribute0-value>' }]
283
+ attributes: [{ key: '<attribute0-key>', value: '<attribute0-value>' }],
284
+ customMetadata: '<custom-metadata>'
282
285
  }
283
286
  end
284
287
 
@@ -355,6 +358,7 @@ class ClientTest < Minitest::Test
355
358
  obj.par_required = PAR_REQUIRED
356
359
  obj.request_object_required = REQUEST_OBJECT_REQUIRED
357
360
  obj.attributes = ATTRIBUTES
361
+ obj.custom_metadata = CUSTOM_METADATA
358
362
  end
359
363
 
360
364
 
@@ -438,6 +442,7 @@ class ClientTest < Minitest::Test
438
442
  assert_equal REQUEST_OBJECT_REQUIRED, obj.requestObjectRequired
439
443
  assert_equal ATTRIBUTE_KEY, obj.attributes[0].key
440
444
  assert_equal ATTRIBUTE_VALUE, obj.attributes[0].value
445
+ assert_equal CUSTOM_METADATA, obj.customMetadata
441
446
  end
442
447
 
443
448
 
@@ -142,6 +142,7 @@ class ServiceTest < Minitest::Test
142
142
  ATTRIBUTE_KEY = '<attribute0-key>'
143
143
  ATTRIBUTE_VALUE = '<attribute0-value>'
144
144
  ATTRIBUTES = [ Authlete::Model::Pair.new(key: ATTRIBUTE_KEY, value: ATTRIBUTE_VALUE) ]
145
+ SUPPORTED_CUSTOM_CLIENT_METADATA = [ '<supported-custom-client-metadata0>', '<supported-custom-client-metadata1>' ]
145
146
 
146
147
 
147
148
  def generate_json
@@ -253,7 +254,8 @@ class ServiceTest < Minitest::Test
253
254
  "scopeRequired": true,
254
255
  "nbfOptional": true,
255
256
  "issSuppressed": false,
256
- "attributes": [{ "key": "<attribute0-key>", "value": "<attribute0-value>" }]
257
+ "attributes": [{ "key": "<attribute0-key>", "value": "<attribute0-value>" }],
258
+ "supportedCustomClientMetadata": [ "<supported-custom-client-metadata0>", "<supported-custom-client-metadata1>" ]
257
259
  }
258
260
  JSON
259
261
  end
@@ -367,7 +369,8 @@ class ServiceTest < Minitest::Test
367
369
  scopeRequired: true,
368
370
  nbfOptional: true,
369
371
  issSuppressed: false,
370
- attributes: [{ key: '<attribute0-key>', value: '<attribute0-value>' }]
372
+ attributes: [{ key: '<attribute0-key>', value: '<attribute0-value>' }],
373
+ supportedCustomClientMetadata: [ '<supported-custom-client-metadata0>', '<supported-custom-client-metadata1>' ]
371
374
  }
372
375
  end
373
376
 
@@ -480,6 +483,7 @@ class ServiceTest < Minitest::Test
480
483
  obj.nbf_optional = NBF_OPTIONAL
481
484
  obj.iss_suppressed = ISS_SUPPRESSED
482
485
  obj.attributes = ATTRIBUTES
486
+ obj.supported_custom_client_metadata = SUPPORTED_CUSTOM_CLIENT_METADATA
483
487
  end
484
488
 
485
489
 
@@ -599,6 +603,7 @@ class ServiceTest < Minitest::Test
599
603
  assert_equal ISS_SUPPRESSED, obj.issSuppressed
600
604
  assert_equal ATTRIBUTE_KEY, obj.attributes[0].key
601
605
  assert_equal ATTRIBUTE_VALUE, obj.attributes[0].value
606
+ assert_equal SUPPORTED_CUSTOM_CLIENT_METADATA, obj.supportedCustomClientMetadata
602
607
  end
603
608
 
604
609
 
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.0
4
+ version: 1.5.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-05-21 00:00:00.000000000 Z
12
+ date: 2021-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client