by Mark Berthelemy.
[UPDATE]
Still no success in registering users or logging in via LTI.
I have tried with two LTI Providers (one Moodle 3.2 hosted locally, and the other Moodle 3.1 hosted on AWS).
Both take the test user to the Provider's login screen within the iframe.
Is there any reason why my LTI Consumer (hosted locally using MAMP) isn't passing the right data to the Provider?
I have tracked the POST call using Postman Interceptor, and it looks like the following data is being sent out from the Consumer:
context_id:2
context_label:Test Course
context_title:Test Course
context_type:CourseSection
ext_lms:moodle-2
ext_user_username:test.user
launch_presentation_document_target:iframe
launch_presentation_locale:en
launch_presentation_return_url:http://moodle.localhost:8888/mod/lti/return.php?course=2&launch_container=3&instanceid=3&sesskey=iK3smesYJV
lis_course_section_sourcedid:
lis_outcome_service_url:http://moodle.localhost:8888/mod/lti/service.php
lis_person_contact_email_primary:######@#####
lis_person_name_family:User
lis_person_name_full:Test User
lis_person_name_given:Test
lis_person_sourcedid:
lis_result_sourcedid:{"data":{"instanceid":"3","userid":"3","typeid":"4","launchid":535072775},"hash":"16ddd1727f6ce4c2cb76303abd7b3cf9af45f5a18f4e2ff0f430c0591b7bb5fc"}
lti_message_type:basic-lti-launch-request
lti_version:LTI-1p0
oauth_callback:about:blank
oauth_consumer_key:abc
oauth_nonce:#############
oauth_signature:#############
oauth_signature_method:HMAC-SHA1
oauth_timestamp:1484667680
oauth_version:1.0
resource_link_description:
resource_link_id:3
resource_link_title:SCORM on Provider site
roles:Learner
tool_consumer_info_product_family_code:moodle
tool_consumer_info_version:2016120501.01
tool_consumer_instance_description:Moodle dev / testing site
tool_consumer_instance_guid:moodle.localhost
tool_consumer_instance_name:Moodle Dev
user_id:3
Any help very gratefully received!
Thanks,
Mark