coalescing_panda 1.1.10 → 1.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/coalescing_panda/controller_helpers.rb +3 -3
- data/lib/coalescing_panda/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Nzc0YzUxOGY5MGVkMTA4ZmI4MGU5ZDc0Y2UxNmI3ZDMwNGRiMzBiMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjkxN2UyZWFlY2RlY2QzMDNmNjA5ZDUwYzkzODA5ZGY0NWQ1ZThhZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2U2ZGI5YjJhNzgwZTNjNmU1ODUxNzY2ZDk2ODhlNDk0MGJlYjFlYzdmZTQ3
|
10
|
+
YjczZGI2MTE4MGZjNDZjNmNhNGU2ZTJhNmRmOWVlNjFhOTZiNmQ1ZDYyOTFl
|
11
|
+
NmU4YTkxZDBlZjNiZmIyMWFhZjk3ZTUyOTRmNTVhMTg0YzRlZGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjAzMjRlYjIwNDllMTVlNGU2YzM2MjZkNmJlM2E5NjNlYWM2YzQxNWFhYTNj
|
14
|
+
MDE4MTIyZDIwNDhhNzBhZTZhMWQwZDFhZTA0MjA0MDZmZDliZWYzZDU1ZTA4
|
15
|
+
OGUyMGQxNTRlNmZlOTg0ZTI2NGRhODEzOTI4MmNhOWVmYjljM2I=
|
@@ -61,11 +61,11 @@ module CoalescingPanda
|
|
61
61
|
@tp = IMS::LTI::ToolProvider.new(@lti_account.key, @lti_account.secret, params)
|
62
62
|
authorized = @tp.valid_request?(request)
|
63
63
|
end
|
64
|
-
logger.
|
64
|
+
logger.info 'not authorized on tp valid request' if !authorized
|
65
65
|
authorized = authorized && (roles.count == 0 || (roles & lti_roles).count > 0)
|
66
|
-
logger.
|
66
|
+
logger.info 'not authorized on roles' if !authorized
|
67
67
|
authorized = authorized && @lti_account.validate_nonce(params['oauth_nonce'], DateTime.strptime(params['oauth_timestamp'], '%s'))
|
68
|
-
logger.
|
68
|
+
logger.info 'not authorized on nonce' if !authorized
|
69
69
|
if !authorized
|
70
70
|
render :text => 'Invalid Credentials, please contact your Administrator.', :status => :unauthorized
|
71
71
|
end
|