diff --git a/src/Core/LTIX.php b/src/Core/LTIX.php index 5f558486..6a7745a0 100644 --- a/src/Core/LTIX.php +++ b/src/Core/LTIX.php @@ -434,7 +434,8 @@ public static function setupSession($needed=self::ALL, $session_object=null, $re } // Use returned data to check the validity of the incoming request - + $raw_jwt = false; + $jwt = false; if ( $LTI11 ) { $valid = LTI::verifyKeyAndSecret($post['key'],$row['secret'],self::curPageUrl(), $request_data); @@ -550,6 +551,9 @@ public static function setupSession($needed=self::ALL, $session_object=null, $re // Just copy across if ( U::get($post,'lti13_deeplink') ) $row['lti13_deeplink'] = $post['lti13_deeplink']; + + self::wrapped_session_put($session_object, 'tsugi_jwt', $jwt); + // self::wrapped_session_put($session_object, 'tsugi_raw_jwt', $raw_jwt); } // Store the launch path diff --git a/src/Util/LTI13.php b/src/Util/LTI13.php index a730beb7..5b6df83e 100644 --- a/src/Util/LTI13.php +++ b/src/Util/LTI13.php @@ -10,6 +10,7 @@ */ class LTI13 extends LTI { + const DEPLOYMENT_ID = "https://purl.imsglobal.org/spec/lti/claim/deployment_id"; const ROLES_CLAIM = "https://purl.imsglobal.org/spec/lti/claim/roles"; const NAMESANDROLES_CLAIM = "https://purl.imsglobal.org/spec/lti-nrps/claim/namesroleservice"; const ENDPOINT_CLAIM = "https://purl.imsglobal.org/spec/lti-ags/claim/endpoint";