ims-lti 2.3.7 → 2.3.8

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
  SHA256:
3
- metadata.gz: 4198c15304560e57a3c1d192aa14494f11896f8a496480603ca8f507340649b5
4
- data.tar.gz: 689b21db6b9b6968365af423955c75f987ec5f5c3535d4fde4b553818fe6175d
3
+ metadata.gz: ed1f42b055870fe4b2b472217452810f4568656e335efa174500bd84eba371c0
4
+ data.tar.gz: 032733b5bd9f7d1af7663038aff1ed90b9cb045f1a90f22b7e6a03bd78b62028
5
5
  SHA512:
6
- metadata.gz: c62980bbc0b70be77caaab5cbd4e628dee5bd040c95de509984b8a730ade0555dcc9f0d7269f6df96311dc4dd8818244b7d4162cdec46c7269df25b8fedffe68
7
- data.tar.gz: c17cf4535de6420d39e2fd7e5802eba0936d1842432c00c61b196c84e6374dbe5127ee96f4fd0218154310722bd6b913c8c8ed0a2c5204a23e9079a1bbc1dfd8
6
+ metadata.gz: afa633f7a98115e79970df5823cf9ba1bc31dffc153e9f7376a968aafc9ee50a34a4c77077e3bc7b6bf41d048af74e3346e8a77b502046c931e7d3c8cb4ff111
7
+ data.tar.gz: caa5c789ab065c56c2b095f14b1215bdeb3f6f6a0bc97f7e6b63d93ed1a1759466ac19c9c4008393ef3961a880b58487978b1714d24775a15a5cc8954129976a
@@ -14,7 +14,10 @@ module IMS::LTI::Services
14
14
 
15
15
 
16
16
  def valid_signature?
17
- message.jwt ? valid_jwt? : simple_oauth_header.valid?(signature: signature)
17
+ return valid_jwt? if message.jwt
18
+ return false if signature.nil?
19
+
20
+ simple_oauth_header.valid?
18
21
  end
19
22
 
20
23
  def message
@@ -33,7 +36,8 @@ module IMS::LTI::Services
33
36
  @options.merge(
34
37
  {
35
38
  consumer_key: consumer_key,
36
- consumer_secret: @secret
39
+ consumer_secret: @secret,
40
+ signature: signature
37
41
  }
38
42
  )
39
43
  )
@@ -1,5 +1,5 @@
1
1
  module IMS
2
2
  module LTI
3
- VERSION = "2.3.7"
3
+ VERSION = "2.3.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ims-lti
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.7
4
+ version: 2.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  - !ruby/object:Gem::Version
325
325
  version: '0'
326
326
  requirements: []
327
- rubygems_version: 3.6.9
327
+ rubygems_version: 4.0.20
328
328
  specification_version: 4
329
329
  summary: Ruby library for creating IMS LTI tool providers and consumers
330
330
  test_files: []