Moodle LTI Error: invalid signature ours

Moodle LTI Problem error with in “invalid signature ours”:

Invalid signature in authentication with LTI connection.

Solution:

Fast and Not recommended solution

line 642 in file moodle/mod/lti/OAuth.php

//throw new OAuthException($ex_text);

if function check_signature:

 private function check_signature(&$request, $consumer, $token) {
 ...
 
 ...
if (!$valid_sig) {
 $ex_text = "Invalid signature";
 if ($oauth_last_computed_signature) {
 $ex_text = $ex_text . " ours= $oauth_last_computed_signature    yours=$signature";
 }
 //throw new OAuthException($ex_text);
 }

 

Leave a Reply

Your email address will not be published. Required fields are marked *