[Building Sakai] Adding data to LTI launch

Schauer, Christopher R cschauer at txstate.edu
Thu Feb 19 11:23:25 PST 2015


Hi Bob,

#1 sounds like a good candidate for a custom lti service. Service requests are handled in basiclti/basiclti-blis/src/java/org/sakaiproject/blti/ServiceServlet.java. You could add a service there that returns the list of sites for the current LTI user. You'd call this service from the lti tool in the same way you'd access the outcomes service or the roster service, but with your new message type. To add a parameter to the launch, take a look at basiclti/basiclti-common/src/java/org/sakaiproject/basiclti/util/SakaiBLTIUtil.java.

 #2 is this JIRA I think: https://jira.sakaiproject.org/browse/SAK-24185. I made a pull request last week that implements it: https://github.com/sakaiproject/sakai/pull/154. It lets you set a rolemap property for the tool that specifies a mapping from sakai roles to lti roles. For example, we have a tool that uses this for the rolemap: "ta:TeachingAssistant,maintain:Learner/Instructor,access:Member,Guest:Learner/GuestLearner,Site Assistant:Instructor/GuestInstructor,Site Collaborator:Instructor/ExternalInstructor,Grader:TeachingAssistant/Grader".

-Chris

On Feb 19, 2015, at 11:31 AM, Robert Long <rlong at unicon.net<mailto:rlong at unicon.net>> wrote:

All,

I was wondering how difficult / what the process is for adding dynamic custom data to an LTI tool launch?

For example, when launching this tool, I would need to:

1. Send a json object with the all of the sites in which the currently logged-in user is a member and their LTI role in each site.
2. Possibly send an additional custom role (other than learner and instructor), depending on certain criteria.

Any pointers on how to make this happen? I know I would need to write some custom code for #1, as nothing exists currently to retrieve this data, but how would I place that data into the launch configuration?

Thanks,
Bob

----
Robert Long
Software Engineer
Technical Account Manager - Sakai
Unicon, Inc.

----
M.A., Instructional Technology
Saginaw Valley State University

_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>
https://urldefense.proofpoint.com/v2/url?u=http-3A__collab.sakaiproject.org_mailman_listinfo_sakai-2Ddev&d=AwICAg&c=OrYO-caJHQE1g_AJU3az1awi55It-bjDIQrtRiZ6WBk&r=2GtSValzWzuAeHPe1VTn34y7siqsP0COyo2UCa1yuDA&m=FLszhv6DCzcCnuAbCaDx1BVpdMzVqIH0VV63QtcaCBA&s=nQ-PFplFxIiJOEjLoJn48yzNhenP0wq8K4KHh3r1jJc&e=

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20150219/9d6ae920/attachment.html 


More information about the sakai-dev mailing list