private function check_signature($consumerkey, $secret, $body) {

        $ok = true;
        try {
            // TODO: Switch to core oauthlib once implemented - MDL-30149.
            lti\handle_oauth_body_post($consumerkey, $secret, $body);
        } catch (\Exception $e) {
            debugging($e->getMessage() . "\n");
            $ok = false;
        }

        return $ok;

    }
private function check_signature($consumerkey, $secret, $body) {

        $ok = true;
        try {
            // TODO: Switch to core oauthlib once implemented - MDL-30149.
            lti\handle_oauth_body_post($consumerkey, $secret, $body);
        } catch (\Exception $e) {
            debugging($e->getMessage() . "\n");
            $ok = false;
        }

        return $ok;

    }
private function check_signature ( $ consumerkey , $ secret , $ body ) { $ ok = true ; try { // TODO: Switch to core oauthlib once implemented - MDL-30149. lti \ handle_oauth_body_post ( $ consumerkey , $ secret , $ body ) ; } catch ( \ Exception $ e ) { debugging ( $ e -> getMessage ( ) . "\n" ) ; $ ok = false ; } return $ ok ; }
Check the request signature.

@param string $consumerkey    Consumer key
@param string $secret         Shared secret
@param string $body           Request body

@return boolean
Check the request signature .