ims-lti 2.0.0.beta.16 → 2.0.0.beta.17

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: f973e5ee205f6af20df12bdc175c32338346a51f
4
- data.tar.gz: b3cade46b7d10bbefce929202c0e9b0ba3d2852d
3
+ metadata.gz: 66164d65cd44e9e1d0f0f40fb4798fecc159a1a5
4
+ data.tar.gz: 9491a035e895508aed29644e47a5e5fbd1a2dc52
5
5
  SHA512:
6
- metadata.gz: fa2b4b346696f928af8d5c4850b2942a46f0f6b9ebe780cd20bec26871c2cccec7eb23a6c2afccdcef0a1fd54c348432cd9c08fdcdcf3bb84d98921f1c175b57
7
- data.tar.gz: 5fc51e4d4c9735163116b6bcc1833bac6cfe108725a26484a4bcf8db66071e6bce5523310f1b6f3cffd282abe923e5ceed9e9a4cff135b45788f530f626dacea
6
+ metadata.gz: caee5e8d03dddeb2e8c94f3b03da359e3bf1c89ce56766b05c7d15323d9752b5fd19998fca7b3fbd5ccf8cab6d88496ba6afbb5800289bdbf3aa1537f413c553
7
+ data.tar.gz: 0b9c705ca132a9acc61df242b749d92b274c72189bbcaa178d39f11b80e3968b7e1905d565c0550c0b7268461901a216030fb8484a16e063b939c0e5dd631594
@@ -20,7 +20,9 @@ module IMS::LTI::Services
20
20
  service = tool_consumer_profile.services_offered.find { |s| s.formats.include?('application/vnd.ims.lti.v2.toolproxy+json') && s.actions.include?('POST') }
21
21
 
22
22
  SimpleOAuth::Header::ATTRIBUTE_KEYS << :body_hash unless SimpleOAuth::Header::ATTRIBUTE_KEYS.include? :body_hash
23
-
23
+ tool_proxy_json = tool_proxy.to_json
24
+ body_hash = Digest::SHA1.base64digest tool_proxy_json
25
+
24
26
  conn = Faraday.new do |conn|
25
27
  conn.request :oauth, {:consumer_key => @registration_request.reg_key, :consumer_secret => @registration_request.reg_password, :body_hash => body_hash}
26
28
  conn.adapter :net_http
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.0.0.beta.16
4
+ version: 2.0.0.beta.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure