File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ private function getPublicKey(): Key
304
304
try {
305
305
$ response = $ this ->serviceConnector ->makeRequest ($ request );
306
306
} catch (TransferException $ e ) {
307
- throw new LtiException (static ::ERR_NO_PUBLIC_KEY );
307
+ throw new LtiException (static ::ERR_NO_PUBLIC_KEY , previous: $ e );
308
308
}
309
309
$ publicKeySet = $ this ->serviceConnector ->getResponseBody ($ response );
310
310
@@ -442,7 +442,7 @@ protected function validateJwtSignature(): self
442
442
JWT ::decode ($ this ->request ['id_token ' ], $ public_key , $ headers );
443
443
} catch (ExpiredException $ e ) {
444
444
// Error validating signature.
445
- throw new LtiException (static ::ERR_INVALID_SIGNATURE );
445
+ throw new LtiException (static ::ERR_INVALID_SIGNATURE , previous: $ e );
446
446
}
447
447
448
448
return $ this ;
You can’t perform that action at this time.
0 commit comments