coalescing_panda 5.2.0.beta1 → 5.2.0.beta2
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 +4 -4
- data/lib/coalescing_panda/controller_helpers.rb +5 -1
- data/lib/coalescing_panda/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f3c2a99cdf57e1876a7f60db9c9aa7ce7f9bc87da1f378e8d370b7109753868
|
4
|
+
data.tar.gz: 544f758cf5309d51f41d2a502039d91fa0aa3573edc93aa6a00808009965959f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 655fe3553d89cedcb82c34ce92165afdb19aea705f225ac92d1eb82eb9530f23f66b0b314e7c0d6499cc80c5c3dcdf6e8cab07875b944ce7436d6dd4fe32a6eb
|
7
|
+
data.tar.gz: d82c810593f9bfa9d2944e51f7dd1db61ecfdd22e5feef4b593dfc8006ea33d37c1c60bb84d6251b19c8d62debab8c8808e207bc4975c68906a4fa526792b00e
|
@@ -93,7 +93,11 @@ module CoalescingPanda
|
|
93
93
|
end
|
94
94
|
|
95
95
|
def lti_authorize!(*roles)
|
96
|
-
|
96
|
+
if valid_session? # This means that we are returning from an OAuth dance.
|
97
|
+
# Set the params as they were at launch to avoid any bait-and-switch attack vulnerabilities in the App's launch controller
|
98
|
+
params.merge!(current_session_data[:launch_params])
|
99
|
+
return true
|
100
|
+
end
|
97
101
|
|
98
102
|
authorized = false
|
99
103
|
if (@lti_account = params['oauth_consumer_key'] && LtiAccount.find_by_key(params['oauth_consumer_key']))
|