authlete 1.27.0 → 1.28.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: 69f45d3c1632656ee8110567b764075c4cc484b2590e370bff3bfe740582cc6e
4
- data.tar.gz: '06548ccc3cc91609a7dd78ab98baae2187c9dda0c3284db5ef4fe74a4abbfdef'
3
+ metadata.gz: 998f791a1e948dc8aeee643775ab8236b5fcfcd19d23388a9ff0155b95486db5
4
+ data.tar.gz: fa726f604cb3d6527676125f748ca76529083224753dfc88c16ac959118fcab0
5
5
  SHA512:
6
- metadata.gz: feda552048bd061d4c1a5a9a4236f2aa5261919b6764c0abda706e2d6142fc43378543ec77643d817beeba890a42fd05672e7df52e2aa483830e4537d1abb1ea
7
- data.tar.gz: 41042c43f9205854650fc059c0e52485e53d412b861f3b34aae14df6e492e786216956930a86dceeadb90ebe5bafb32ad2b4be96745ab2f2f3406d83b17206c2
6
+ metadata.gz: a3109b33580df6d4822cfad82e53c93f71308be514608302e5ee5ff1b99243afc4e490f45207435532644001a17c407685094ef8eae4c8107a2e61368b03ed8c
7
+ data.tar.gz: 25b65a63e5fbad1335986a9018ba12420e5494d8e22dcd3a7d6785ff2accc0a583b967f94ae3e375fbb8e1ec2173f07a98b88495f4ff6e0a6f7b9c506e5b1342
@@ -324,6 +324,14 @@ module Authlete
324
324
  alias_method :pkce_s256_required, :pkceS256Required
325
325
  alias_method :pkce_s256_required=, :pkceS256Required=
326
326
 
327
+ attr_accessor :automaticallyRegistered
328
+ alias_method :automatically_registered, :automaticallyRegistered
329
+ alias_method :automatically_registered=, :automaticallyRegistered=
330
+
331
+ attr_accessor :explicitlyRegistered
332
+ alias_method :explicitly_registered, :explicitlyRegistered
333
+ alias_method :explicitly_registered=, :explicitlyRegistered=
334
+
327
335
  private
328
336
 
329
337
  def defaults
@@ -407,6 +415,8 @@ module Authlete
407
415
  singleAccessTokenPerSubject: false,
408
416
  pkceRequired: false,
409
417
  pkceS256Required: false,
418
+ automaticallyRegistered: false,
419
+ explicitlyRegistered: false,
410
420
  }
411
421
  end
412
422
 
@@ -490,6 +500,8 @@ module Authlete
490
500
  @singleAccessTokenPerSubject = hash[:singleAccessTokenPerSubject]
491
501
  @pkceRequired = hash[:pkceRequired]
492
502
  @pkceS256Required = hash[:pkceS256Required]
503
+ @automaticallyRegistered = hash[:automaticallyRegistered]
504
+ @explicitlyRegistered = hash[:explicitlyRegistered]
493
505
  end
494
506
 
495
507
  def to_hash_value(key, var)
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.27.0"
19
+ VERSION = "1.28.0"
20
20
  end
@@ -125,6 +125,8 @@ class ClientTest < Minitest::Test
125
125
  SINGLE_ACCESS_TOKEN_PER_SUBJECT = false
126
126
  PKCE_REQUIRED = false
127
127
  PKCE_S256_REQUIRED = false
128
+ AUTOMATICALLY_REGISTERED = false
129
+ EXPLICITLY_REGISTERED = false
128
130
 
129
131
  def generate_json
130
132
  return <<~JSON
@@ -213,7 +215,9 @@ class ClientTest < Minitest::Test
213
215
  "digestAlgorithm": "<digest-algorithm>",
214
216
  "singleAccessTokenPerSubject": false,
215
217
  "pkceRequired": false,
216
- "pkceS256Required": false
218
+ "pkceS256Required": false,
219
+ "automaticallyRegistered": false,
220
+ "explicitlyRegistered": false
217
221
  }
218
222
  JSON
219
223
  end
@@ -306,6 +310,8 @@ class ClientTest < Minitest::Test
306
310
  singleAccessTokenPerSubject: false,
307
311
  pkceRequired: false,
308
312
  pkceS256Required: false,
313
+ automaticallyRegistered: false,
314
+ explicitlyRegistered: false,
309
315
  }
310
316
  end
311
317
 
@@ -389,6 +395,8 @@ class ClientTest < Minitest::Test
389
395
  obj.singleAccessTokenPerSubject = SINGLE_ACCESS_TOKEN_PER_SUBJECT
390
396
  obj.pkceRequired = PKCE_REQUIRED
391
397
  obj.pkceS256Required = PKCE_S256_REQUIRED
398
+ obj.automaticallyRegistered = AUTOMATICALLY_REGISTERED
399
+ obj.explicitlyRegistered = EXPLICITLY_REGISTERED
392
400
  end
393
401
 
394
402
 
@@ -481,6 +489,8 @@ class ClientTest < Minitest::Test
481
489
  assert_equal SINGLE_ACCESS_TOKEN_PER_SUBJECT, obj.singleAccessTokenPerSubject
482
490
  assert_equal PKCE_REQUIRED, obj.pkceRequired
483
491
  assert_equal PKCE_S256_REQUIRED, obj.pkceS256Required
492
+ assert_equal AUTOMATICALLY_REGISTERED, obj.automaticallyRegistered
493
+ assert_equal EXPLICITLY_REGISTERED, obj.explicitlyRegistered
484
494
  end
485
495
 
486
496
 
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlete
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.0
4
+ version: 1.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiko Kawasaki
8
8
  - Hideki Ikeda
9
9
  - Seth Wright
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-11-20 00:00:00.000000000 Z
13
+ date: 2022-11-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -245,7 +245,7 @@ homepage: https://www.authlete.com/
245
245
  licenses:
246
246
  - Apache License, Version 2.0
247
247
  metadata: {}
248
- post_install_message:
248
+ post_install_message:
249
249
  rdoc_options: []
250
250
  require_paths:
251
251
  - lib
@@ -260,8 +260,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  - !ruby/object:Gem::Version
261
261
  version: '0'
262
262
  requirements: []
263
- rubygems_version: 3.3.11
264
- signing_key:
263
+ rubygems_version: 3.0.3.1
264
+ signing_key:
265
265
  specification_version: 4
266
266
  summary: A library for Authlete Web APIs
267
267
  test_files: