authlete 1.1.0 → 1.2.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/service.rb +13 -1
- data/lib/authlete/version.rb +1 -1
- data/test/authlete/model/test_service.rb +12 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65a17f6bf74d7d6f71ce4eb1a2fa3360e48c2c8a
|
4
|
+
data.tar.gz: e025a237f9b8a2cb2ca5dfde11b98e1ad55672bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4e6e76f6e2d1d5cb5cd158d51babea6e181e351bb876422ca3e8b9d7aac15ead501419a3e8ae661448768e77a951e933acc329ae225481c38523192da1214dc
|
7
|
+
data.tar.gz: b5eb176613b0ee9eb3288a509b64d4240f4e96983b1548277a8481ba6031f29c9726c11bd00ddbc39a4a9915630c4df59e65835122b95a4afcacb62811264f3e
|
@@ -427,6 +427,14 @@ module Authlete
|
|
427
427
|
alias_method :scope_required, :scopeRequired
|
428
428
|
alias_method :scope_required=, :scopeRequired=
|
429
429
|
|
430
|
+
attr_accessor :nbfOptional
|
431
|
+
alias_method :nbf_optional, :nbfOptional
|
432
|
+
alias_method :nbf_optional=, :nbfOptional=
|
433
|
+
|
434
|
+
attr_accessor :issSuppressed
|
435
|
+
alias_method :iss_suppressed, :issSuppressed
|
436
|
+
alias_method :iss_suppressed=, :issSuppressed=
|
437
|
+
|
430
438
|
private
|
431
439
|
|
432
440
|
def defaults
|
@@ -534,7 +542,9 @@ module Authlete
|
|
534
542
|
requestObjectRequired: false,
|
535
543
|
traditionalRequestObjectProcessingApplied: false,
|
536
544
|
claimShortcutRestrictive: false,
|
537
|
-
scopeRequired: false
|
545
|
+
scopeRequired: false,
|
546
|
+
nbfOptional: false,
|
547
|
+
issSuppressed: false
|
538
548
|
}
|
539
549
|
end
|
540
550
|
|
@@ -643,6 +653,8 @@ module Authlete
|
|
643
653
|
@traditionalRequestObjectProcessingApplied = hash[:traditionalRequestObjectProcessingApplied]
|
644
654
|
@claimShortcutRestrictive = hash[:claimShortcutRestrictive]
|
645
655
|
@scopeRequired = hash[:scopeRequired]
|
656
|
+
@nbfOptional = hash[:nbfOptional]
|
657
|
+
@issSuppressed = hash[:issSuppressed]
|
646
658
|
end
|
647
659
|
|
648
660
|
def to_hash_value(key, var)
|
data/lib/authlete/version.rb
CHANGED
@@ -137,6 +137,8 @@ class ServiceTest < Minitest::Test
|
|
137
137
|
TRADITIONAL_REQUEST_OBJECT_PROCESSING_APPLIED = false
|
138
138
|
CLAIM_SHORTCUT_RESTRICTIVE = false
|
139
139
|
SCOPE_REQUIRED = true
|
140
|
+
NBF_OPTIONAL = true
|
141
|
+
ISS_SUPPRESSED = false
|
140
142
|
|
141
143
|
|
142
144
|
def generate_json
|
@@ -245,7 +247,9 @@ class ServiceTest < Minitest::Test
|
|
245
247
|
"requestObjectRequired": true,
|
246
248
|
"traditionalRequestObjectProcessingApplied": false,
|
247
249
|
"claimShortcutRestrictive": false,
|
248
|
-
"scopeRequired": true
|
250
|
+
"scopeRequired": true,
|
251
|
+
"nbfOptional": true,
|
252
|
+
"issSuppressed": false
|
249
253
|
}
|
250
254
|
JSON
|
251
255
|
end
|
@@ -356,7 +360,9 @@ class ServiceTest < Minitest::Test
|
|
356
360
|
requestObjectRequired: true,
|
357
361
|
traditionalRequestObjectProcessingApplied: false,
|
358
362
|
claimShortcutRestrictive: false,
|
359
|
-
scopeRequired: true
|
363
|
+
scopeRequired: true,
|
364
|
+
nbfOptional: true,
|
365
|
+
issSuppressed: false
|
360
366
|
}
|
361
367
|
end
|
362
368
|
|
@@ -466,6 +472,8 @@ class ServiceTest < Minitest::Test
|
|
466
472
|
obj.traditional_request_object_processing_applied = TRADITIONAL_REQUEST_OBJECT_PROCESSING_APPLIED
|
467
473
|
obj.claim_shortcut_restrictive = CLAIM_SHORTCUT_RESTRICTIVE
|
468
474
|
obj.scope_required = SCOPE_REQUIRED
|
475
|
+
obj.nbf_optional = NBF_OPTIONAL
|
476
|
+
obj.iss_suppressed = ISS_SUPPRESSED
|
469
477
|
|
470
478
|
obj
|
471
479
|
end
|
@@ -583,6 +591,8 @@ class ServiceTest < Minitest::Test
|
|
583
591
|
assert_equal TRADITIONAL_REQUEST_OBJECT_PROCESSING_APPLIED, obj.traditionalRequestObjectProcessingApplied
|
584
592
|
assert_equal CLAIM_SHORTCUT_RESTRICTIVE, obj.claimShortcutRestrictive
|
585
593
|
assert_equal SCOPE_REQUIRED, obj.scopeRequired
|
594
|
+
assert_equal NBF_OPTIONAL, obj.nbfOptional
|
595
|
+
assert_equal ISS_SUPPRESSED, obj.issSuppressed
|
586
596
|
end
|
587
597
|
|
588
598
|
|
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.2.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:
|
12
|
+
date: 2021-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|