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 +4 -4
- data/lib/authlete/model/client.rb +12 -0
- data/lib/authlete/version.rb +1 -1
- data/test/authlete/model/test_client.rb +11 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 998f791a1e948dc8aeee643775ab8236b5fcfcd19d23388a9ff0155b95486db5
|
4
|
+
data.tar.gz: fa726f604cb3d6527676125f748ca76529083224753dfc88c16ac959118fcab0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/authlete/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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:
|