qalam_lti_provider_engine 2.0.8 → 2.0.9
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07bc159f241d267bd6e42067a210324f18198742dc3e4965959b6b95065aebe7
|
4
|
+
data.tar.gz: 5f962326d293321e6d9d229c6bd7fad1c57e4155efb03e416a540afaf30cda33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 215e7707f1858ce5cb1c3302b324ce2b9f0e513a1b7781d171b8179f1a7d1bc5378797f268dfffd4c179445a9396f7c58b51bc976f76ff2fc9a82165ac06f54d
|
7
|
+
data.tar.gz: a31aeb671814a4f142ebd99ccb2e19acb11334e5f35c7cfc384f50d80c7deca978f3a104239cf1d6de1328efac50f353498d233b16c7ef414799a43ffce3b44f
|
@@ -4,7 +4,7 @@ require 'colorize'
|
|
4
4
|
module LtiProvider
|
5
5
|
class LtiController < LtiProvider::LtiApplicationController
|
6
6
|
skip_before_action :require_lti_launch
|
7
|
-
skip_before_action :verify_authenticity_token, only: :launch
|
7
|
+
# skip_before_action :verify_authenticity_token, only: :launch
|
8
8
|
|
9
9
|
def launch
|
10
10
|
tool_key = params['oauth_consumer_key']
|
@@ -12,8 +12,13 @@ module LtiProvider
|
|
12
12
|
protected
|
13
13
|
def require_lti_launch
|
14
14
|
if canvas_url.blank? || user_id.blank?
|
15
|
-
|
16
|
-
|
15
|
+
if session[:qalam_url]
|
16
|
+
reset_session
|
17
|
+
prompt_for_launch_authorized
|
18
|
+
else
|
19
|
+
reset_session
|
20
|
+
prompt_for_launch
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|
19
24
|
|
@@ -21,6 +26,10 @@ module LtiProvider
|
|
21
26
|
render plain: 'Please launch this tool from Qalam and then try again.'
|
22
27
|
end
|
23
28
|
|
29
|
+
def prompt_for_launch_authorized
|
30
|
+
render plain: 'You need to be login on Qalam.'
|
31
|
+
end
|
32
|
+
|
24
33
|
def canvas_url
|
25
34
|
session[:canvas_url]
|
26
35
|
end
|
@@ -79,4 +88,4 @@ module LtiProvider
|
|
79
88
|
render plain: "Unable to process request", status: 406
|
80
89
|
end
|
81
90
|
end
|
82
|
-
end
|
91
|
+
end
|
data/lib/lti_provider/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qalam_lti_provider_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Donahue
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-08-
|
14
|
+
date: 2021-08-29 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|