Skip to content

Commit

Permalink
Fixes ucfopen#727 by looking for LTI initiation in both POST and GET …
Browse files Browse the repository at this point in the history
…per IMS spec
  • Loading branch information
ottenhoff authored and SimonRothUCF committed Feb 17, 2022
1 parent 40b7cfd commit 167d1f1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Controller/LtiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,19 @@ protected function saveTokenToSession($token)
protected function saveRequestToSession()
{
try {
$getParams = $this->request->query->all();
$postParams = $this->request->request->all();

foreach ($getParams as $key => $val) {
if (!empty($val)) {
$this->session->set($key, $val);
}
}

foreach ($postParams as $key => $val) {
$this->session->set($key, $val);
if (!empty($val)) {
$this->session->set($key, $val);
}
}

if (!$this->session->get('lms_api_domain')) {
Expand Down

0 comments on commit 167d1f1

Please sign in to comment.