authlete 1.19.1 → 1.20.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 +4 -4
- data/lib/authlete/model/client.rb +7 -1
- data/lib/authlete/version.rb +1 -1
- data/test/authlete/model/test_client.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f0f975f450b062ce2e4c699ecf963ab67e0594b9912edda6e237aa34a5d232a
|
|
4
|
+
data.tar.gz: 5b65c27d14a277aa1a3118e3c0381c06426f43eb3a04e9a5cf5b1ddef87d80b9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6259dfda0962dcc6da2c5fa2a2e316471c14b0c302019a5a1fd942a0ae705155bcccd7469576b64642962ea6b3cbfa994778e130044659c34c8d8a9d6cbffd53
|
|
7
|
+
data.tar.gz: 966937e26341c3b9ec375c1118f156519dda150cd8c20c18bb29fba411bd2594c9bcbb78220eabdf21b2bbcf633fd817ab679f1dbd4b26e995f30fb2ea9ec357
|
|
@@ -308,6 +308,10 @@ module Authlete
|
|
|
308
308
|
attr_accessor :digestAlgorithm
|
|
309
309
|
alias_method :digest_algorithm, :digestAlgorithm
|
|
310
310
|
alias_method :digest_algorithm=, :digestAlgorithm=
|
|
311
|
+
|
|
312
|
+
attr_accessor :singleAccessTokenPerSubject
|
|
313
|
+
alias_method :single_access_token_per_subject, :singleAccessTokenPerSubject
|
|
314
|
+
alias_method :single_access_token_per_subject=, :singleAccessTokenPerSubject=
|
|
311
315
|
private
|
|
312
316
|
|
|
313
317
|
def defaults
|
|
@@ -387,7 +391,8 @@ module Authlete
|
|
|
387
391
|
frontChannelRequestObjectEncryptionRequired: false,
|
|
388
392
|
requestObjectEncryptionAlgMatchRequired: false,
|
|
389
393
|
requestObjectEncryptionEncMatchRequired: false,
|
|
390
|
-
digestAlgorithm: nil
|
|
394
|
+
digestAlgorithm: nil,
|
|
395
|
+
singleAccessTokenPerSubject: false
|
|
391
396
|
}
|
|
392
397
|
end
|
|
393
398
|
|
|
@@ -468,6 +473,7 @@ module Authlete
|
|
|
468
473
|
@requestObjectEncryptionAlgMatchRequired = hash[:requestObjectEncryptionAlgMatchRequired]
|
|
469
474
|
@requestObjectEncryptionEncMatchRequired = hash[:requestObjectEncryptionEncMatchRequired]
|
|
470
475
|
@digestAlgorithm = hash[:digestAlgorithm]
|
|
476
|
+
@singleAccessTokenPerSubject = hash[:singleAccessTokenPerSubject]
|
|
471
477
|
end
|
|
472
478
|
|
|
473
479
|
def to_hash_value(key, var)
|
data/lib/authlete/version.rb
CHANGED
|
@@ -120,6 +120,7 @@ class ClientTest < Minitest::Test
|
|
|
120
120
|
REQUEST_OBJECT_ENCRYPTION_ALG_MATCH_REQUIRED = false
|
|
121
121
|
REQUEST_OBJECT_ENCRYPTION_ENC_MATCH_REQUIRED = false
|
|
122
122
|
DIGEST_ALGORITHM = '<digest-algorithm>'
|
|
123
|
+
SINGLE_ACCESS_TOKEN_PER_SUBJECT = false
|
|
123
124
|
|
|
124
125
|
def generate_json
|
|
125
126
|
return <<~JSON
|
|
@@ -204,7 +205,8 @@ class ClientTest < Minitest::Test
|
|
|
204
205
|
"frontChannelRequestObjectEncryptionRequired": false,
|
|
205
206
|
"requestObjectEncryptionAlgMatchRequired": false,
|
|
206
207
|
"requestObjectEncryptionEncMatchRequired": false,
|
|
207
|
-
"digestAlgorithm": "<digest-algorithm>"
|
|
208
|
+
"digestAlgorithm": "<digest-algorithm>",
|
|
209
|
+
"singleAccessTokenPerSubject": false
|
|
208
210
|
}
|
|
209
211
|
JSON
|
|
210
212
|
end
|
|
@@ -292,7 +294,8 @@ class ClientTest < Minitest::Test
|
|
|
292
294
|
frontChannelRequestObjectEncryptionRequired: false,
|
|
293
295
|
requestObjectEncryptionAlgMatchRequired: false,
|
|
294
296
|
requestObjectEncryptionEncMatchRequired: false,
|
|
295
|
-
digestAlgorithm: '<digest-algorithm>'
|
|
297
|
+
digestAlgorithm: '<digest-algorithm>',
|
|
298
|
+
singleAccessTokenPerSubject: false
|
|
296
299
|
}
|
|
297
300
|
end
|
|
298
301
|
|
|
@@ -374,6 +377,7 @@ class ClientTest < Minitest::Test
|
|
|
374
377
|
obj.requestObjectEncryptionAlgMatchRequired = REQUEST_OBJECT_ENCRYPTION_ALG_MATCH_REQUIRED
|
|
375
378
|
obj.requestObjectEncryptionEncMatchRequired = REQUEST_OBJECT_ENCRYPTION_ENC_MATCH_REQUIRED
|
|
376
379
|
obj.digestAlgorithm = DIGEST_ALGORITHM
|
|
380
|
+
obj.singleAccessTokenPerSubject = SINGLE_ACCESS_TOKEN_PER_SUBJECT
|
|
377
381
|
end
|
|
378
382
|
|
|
379
383
|
|
|
@@ -462,6 +466,7 @@ class ClientTest < Minitest::Test
|
|
|
462
466
|
assert_equal REQUEST_OBJECT_ENCRYPTION_ALG_MATCH_REQUIRED, obj.requestObjectEncryptionAlgMatchRequired
|
|
463
467
|
assert_equal REQUEST_OBJECT_ENCRYPTION_ENC_MATCH_REQUIRED, obj.requestObjectEncryptionEncMatchRequired
|
|
464
468
|
assert_equal DIGEST_ALGORITHM, obj.digestAlgorithm
|
|
469
|
+
assert_equal SINGLE_ACCESS_TOKEN_PER_SUBJECT, obj.singleAccessTokenPerSubject
|
|
465
470
|
end
|
|
466
471
|
|
|
467
472
|
|
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
|
+
version: 1.20.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: 2022-
|
|
12
|
+
date: 2022-07-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-client
|