panda_pal 2.0.0 → 2.0.1
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: ee6016299d069242332167b82a3eb2fd2425cf5e
|
4
|
+
data.tar.gz: eaff332533e96acfe82ec40ba2980776d11c9165
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '058797c10fc0ea92c292155727184b51d77a291bd02cfaab9ffca948d6cac67a9136d59193dc22803d50d85407d9baa989ecd11991dfe94b01cdb1412d053581'
|
7
|
+
data.tar.gz: 40c33b478e090f10563eaaf1635e509b5121750ec5cbf8022f530cfa0b6c0172f9b8853f19985fa2c3767006251836cd20d84684031ddc4eebc13d9d4ad8b744
|
@@ -28,7 +28,7 @@ module PandaPal::Helpers::ControllerHelper
|
|
28
28
|
authenticator = IMS::LTI::Services::MessageAuthenticator.new(request.original_url, request.request_parameters, @organization.secret)
|
29
29
|
authorized = authenticator.valid_signature?
|
30
30
|
end
|
31
|
-
render :
|
31
|
+
render plain: 'Invalid Credentials, please contact your Administrator.', :status => :unauthorized unless authorized
|
32
32
|
authorized
|
33
33
|
end
|
34
34
|
|
@@ -42,7 +42,7 @@ module PandaPal::Helpers::ControllerHelper
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def forbid_access_if_lacking_session
|
45
|
-
render
|
45
|
+
render plain: 'You should do an LTI Tool Launch.', status: :unauthorized unless valid_session?
|
46
46
|
end
|
47
47
|
|
48
48
|
def valid_session?
|
data/lib/panda_pal/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panda_pal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Young
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-05-
|
12
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|