authlete 1.1.0 → 1.2.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: cb006019176ce727d7082df01b8dfb203196355f
4
- data.tar.gz: 8d2ceba5ad8a6c3c558e06d78a709fff67db068e
3
+ metadata.gz: 65a17f6bf74d7d6f71ce4eb1a2fa3360e48c2c8a
4
+ data.tar.gz: e025a237f9b8a2cb2ca5dfde11b98e1ad55672bc
5
5
  SHA512:
6
- metadata.gz: 24e8bdbe35decd978515837684ab16c8e264a431a1ff0d33ed5372bbdb93c83ce9a118810c17ac5984d72ac92d29933e6e4ad59870c0c187a45c4f59c79965a2
7
- data.tar.gz: d13c223cec60659b62309f4f1ace44800666a6d09518e7ac575f22b7964ac94210b1c7c86170723783b0c50d850abcdd391d7cc8779e32e49a0504f59ac9106f
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)
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module Authlete
19
- VERSION = "1.1.0"
19
+ VERSION = "1.2.0"
20
20
  end
@@ -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.1.0
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: 2020-12-02 00:00:00.000000000 Z
12
+ date: 2021-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client