Invalid OAuth signature, LTI configuration

Invalid OAuth signature, LTI configuration

by Alex Michel -
Number of replies: 2

Dear All,

I'm developper of www.pinocchio.band based on moodle 3.4.3 far a music education project supported by ERASMUS + and concerning Italy, Portugal and Serbia.

I need to integrate an External tool (Noteflight) which I believe I have configured correctly in the TOOLS MANAGEMENT area according to the provider's suggestions by URL, consumer key, secret key.

Once the tool is added as an activity to a new course, opening the resource I receive an authentication error message from the LTI provider (Invalid OAuth signature) and even if I have access to the external environment it is not possible to import course participants.

I read on other forums that exist (or existed) bugs in moodle/mod/lti/OAuth.php related to the communication between moodle and some LTI Providers (presence of particular characters in the title or description of the resource), but after many attempts I have not yet solved.

Could anyone give me any suggestions? I have an urgent need for it

THANKS


Attachment Image7.jpg
Average of ratings: -
In reply to Alex Michel

Re: Invalid OAuth signature, LTI configuration

by Alex Michel -

Update.

I try a test with  MS LTI tool provider emulator

http://ltiapps.net/test/tp.php


Here below the result. Any help ?

THANKS


Request summary

basic-lti-launch-request message request is valid.

Services support

  • LTI service:
    • Basic Outcomes: Yes
    • Tool Settings: No
    • Outcomes 2: No
    • Memberships: No
  • Extension services:
    • Outcomes: No
    • Memberships: No
    • Setting: No
  • Caliper Profile: No

Raw POST Parameters

context_id=29
context_label=NF
context_title=NF1
context_type=CourseSection
ext_lms=moodle-2
ext_user_username=admin
launch_presentation_document_target=iframe
launch_presentation_locale=it
launch_presentation_return_url=https://www.pinocchio.band/moodle/mod/lti/return.php?course=29&launch_container=3&instanceid=11&sesskey=nV2E96Wmu8
lis_course_section_sourcedid=
lis_outcome_service_url=https://www.pinocchio.band/moodle/mod/lti/service.php
lis_person_contact_email_primary=admin@pinocchio.band
lis_person_name_family=Michelotti
lis_person_name_full=Alessio Michelotti
lis_person_name_given=Alessio
lis_person_sourcedid=
lis_result_sourcedid={"data":{"instanceid":"11","userid":"2","typeid":"2","launchid":241278175},"hash":"c776854a7adcce0979e48e4849ac2b8ac4d95bd302e850f3927e355b28bc13db"}
lti_message_type=basic-lti-launch-request
lti_version=LTI-1p0
oauth_callback=about:blank
oauth_consumer_key=consumerkey
oauth_nonce=5527c7de1558fe75d1439642875084a4
oauth_signature=RszmugNRNQ9JtTHVcpVPgJKJR0g=
oauth_signature_method=HMAC-SHA1
oauth_timestamp=1553785949
oauth_version=1.0
resource_link_description=
resource_link_id=11
resource_link_title=Test Tool
roles=Instructor,urn:lti:sysrole:ims/lis/Administrator,urn:lti:instrole:ims/lis/Administrator
tool_consumer_info_product_family_code=moodle
tool_consumer_info_version=2017111303.05
tool_consumer_instance_description=Pinocchio Joins the Orchestra
tool_consumer_instance_guid=www.pinocchio.band
tool_consumer_instance_name=Pinocchio
user_id=2



In reply to Alex Michel

Re: Invalid OAuth signature, LTI configuration

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hi Alex,
A couple of weeks ago, I started trying to help someone set up and use Noteflight from Moodle and I am seeing the same Invalid OAuth signature problem. Did you ever make in progress in getting it to work?