I am trying to implement a SSO (single sign on) from Moodle to a WP multi-site, with sites already created.
I hacked the LTI connector code (doconnect.php) to remove blog creation and just log users into existing multi-sites. This works fine.
The problem is that there is no information being passed from Moodle accept for the userid. The context, resource link, all are not being passed. So there is no way for me to switch to a particular site based. I would like the use to be switched to a particular site depending on the origin (context) in Moodle such as different courses.
I found no useful way to embed any parameter in the External Tool in the custom parameters section since I do not know the format. If I could pass the context in some way then I could direct the user to desired site among the multi-site.
I thank you for any help in this regard.