ims-lti 2.0.0.beta.16 → 2.0.0.beta.17
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66164d65cd44e9e1d0f0f40fb4798fecc159a1a5
|
4
|
+
data.tar.gz: 9491a035e895508aed29644e47a5e5fbd1a2dc52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|