[Building Sakai] LTI Producer

Steve Swinsburg steve.swinsburg at gmail.com
Tue Feb 14 14:48:20 PST 2012


Hi Adrian,

First up, do you have the same users in both Moodle and Sakai? If so, activate the highly trusted consumers option. This will allow the user and site details to pass through without being namespaced and then you can re-use existing sites, data and config. This is what we do to embed Sakai tools inside uPortal. So a user can get the wiki from one of their sites that they have been working on in Sakai.

Without this, the userid will be prefixed (they get a new account, but they can't login to it via Sakai, only via Basic LTI. A new site and new tool is also created. Not ideal if you want to reuse data.

For roles, if you are using the trusted consumer option, then the roles are ignored and it proceeds based on what role you have in the site. If not, then it gets it from the "roles" request param. Of course, that role needs to exist in the Sakai site (though there is some allowance for the instructor or student roles). I am just about to do some work so that you can map IMS roles to Sakai roles, via sakai.props, so it isn't as rigid: https://jira.sakaiproject.org/browse/BLTI-151

The context_id param maps to the site_id. If highly trusted, it is passed though as is, if not, it is namespaced.

Tool config, if highly trusted, is whatever the tool is setup as, if not, then it is a new instance of the tool (in the namespaced site).

To make a tool work, add it to the list of allowed tools, via basiclti.provider.allowedtools in sakai.properties.

cheers,
Steve







On 15/02/2012, at 2:49 AM, Adrian Fish wrote:

> Does anybody know how the LTI producer works?
> 
> I'm trying to get the signup tool working in Moodle and it gives me 
> this: 'Not allowed to access tool'. When I actually think about what is 
> happening this makes sense in the case of site dependent tools. How does 
> the producer portlet interpret the roles passed in the launch request, 
> before it passes the request onto the tool? How does the portlet make 
> use of the context_id param? How is the target tool supposed to apply 
> permissions without prior configuration?
> 
> Is there anything special that needs doing before a tool is 'exportable' 
> through the LTI producer?
> 
> Any pointers well appreciated!
> 
> Cheers,
> Adrian.
> 
> -- 
> ==================================
> Adrian Fish
> Software Engineer
> B66 Management School
> Lancaster University
> Lancaster
> LA1 4YW
> 
> http://www.sakaiproject.org
> http://confluence.sakaiproject.org/display/YAFT/Yaft
> http://confluence.sakaiproject.org/display/CLOG/Home
> http://confluence.sakaiproject.org/display/BBB/Home
> 
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"



More information about the sakai-dev mailing list