311/Publicar como herramienta LTI

De MoodleDocs

¡Nueva característica
en Moodle 3.1!

Esta página necesita actualizarse con la información existente en la documentación vigente/moderna/actualizada en el idioma inglés original para Moodle. Se le sugiere al lector que consulte la página original en idioma inglés cuyo enlace está al fondo de esta página. y que, por favor, actualice esta información y quite la plantilla {{Actualizar}} cuando haya terminado.     (otras páginas pendientes de actualizar)


note icon.png Existe documentación diferente para varias versiones de Moodle: En Moodle 3.0 y anteriores esto se llamaba Herramienta externa compartida y existe documentación anterior al respecto


Moodle como un proveedor LTI (Interoperabilidad de Herramientas de Aprendizaje, en inglés Learning Tools Interoperability)

El plugin de inscripción ' Publicar como herramienta LTI', en conjunto con el plugin de Autenticación LTI, permite a los usuarios remotos en un sitio diferente (conocido como un consumidor LTI) acceder a cursos y actividades selectos. En otras palabras, Moodle funciona como un proveedor de herramienta LTI. Las calificaciones se envían de regreso al sistema remoto.

Si la instancia de Moodle empleada está usando HTTP (y no HTTPS solo se podrá usar la herramienta en sitios que también estén usando HTTP (y no HTTPS). Es recomendable usar también HTTPS en la instancia de Moodle. Ver Haciendo la transición a HTTPS

¡Nueva característica
en Moodle 3.2!
Nota: LTI 2 está soportado de Moodle 3.2 en adelante, lo que hace más fácil a otros el acceder al contenido compartido.

Nota: Pendiente de Traducir. ¡Anímese a traducir esta página!.     ( y otras páginas pendientes)


Habilitando 'Publicar como herramienta LTI' a nivel del sitio

Un administrador puede habilitar 'Publicar como herramienta LTI' para usarse en todo el sitio.

  1. Ir a Administración del Sitio > Plugins > Autentificación > Asministrar autentificación y habilitar LTI
  2. Ir a Administración del Sitio > Plugins > Inscripciones > Gestionar plugins de inscripción y habilitar 'Publicar como herramienta LTI'

Es recomendable que los ajustes de administración se fijen para 'Permitir incrustación de cuadros' (en "Administración de sitio > Seguridad > seguridad HTTP") para que los recursos se desplieguen en un cuadro en lugar de hacerlo en una ventana nueva.

Compartiendo el acceso a un curso o a una actividad

  1. Go to the course and in Course administration > Users > Enrolment methods add 'Publish as LTI tool' as an enrolment method
  2. In 'Tool to be provided' select the course or activity to be shared
  3. Click the 'Add method' button
  4. Go to Course administration > Published as LTI tools and make a note of the URL and secret for the LTI consumer site. The URL will be of the form: .../enrol/lti/...
  5. You will also need to give the LTI consumer site a consumer key - this can be anything you want.

¡Nueva característica
en Moodle 3.5!
El consumidor de LTI puede ser otro sitio Moodle o cualquier otro Sistema de Gestión del Aprendizaje que cumpla como consumidor LTI, como por ejemplo, Sakai. Dependiendo de los requisitos del consumidor LTI, Usted puede proporcionar, ya sea una URL de cartucho (cartridge URL) (también llamada URL de configuración (configuration URL) además de un secreto O BIEN una URL de lanzamiento (launch URL) (nuevo en Moodle 3.5.2) O BIEN una URL de registro (registration URL).

La sincronización de usuario y calificación (si se necesitara) son hechas mediante los Quehaceres agendados 'Publish as LTI tool grade sync' (sincronizar calificación en publicar como herramienta LTI) y 'Publish as LTI tool users sync' (sincronizar usuarios en publicar como herramienta LTI) , que corren por defecto cada 30 minutos.

If user synchronisation is set to yes, enrolled users in the remote system are synchronised with enrolments in the course, with an account created for each remote user as necessary, and the user enrolled or unenrolled as required. If set to no, at the moment when a remote user accesses the tool, an account will be created for them and they will be automatically enrolled


LTI 1 or LTI 2?

LTI 1 actually means a launch URL (which is compatible with LTI 1 or LTI 2 compliant consumers). LTI 2 actually means a proxy (which is compatible with LTI 2 compliant consumers).

IMS Spec Moodle Canvas Edu app center (Canvas) Desire2Learn Blackboard Sakai Chamilo
Tool consumer External Tool External App App Link LTI Tool provider* Sakai Basic LTI portlet IMS/LTI Plugin
Launch URL Tool URL Launch URL n/a URL Provider Domain Remote Tool URL Launch URL
Secret Secret Secret Secret Secret Tool Provider Secret Remote tool secret Secret
Cartridge URL Tool URL Paste XML Configuration URL n/a n/a Tool registration file? n/a
Proxy URL Registration URL/Tool URL LTI 2 Registration URL n/a n/a n/a - n/a


En el sitio del consumidor LTI

  1. Visit a course.
  2. Add a LTI activity
  3. Give it a name and save the changes.
  4. Enter the LTI activity settings again
  5. Click on the + icon to the right of the 'Preconfigured tool' dropdown
  6. On a separate tab on your browser, enter the Cartridge URL (ending in .xml)
  7. Find "<blti:launch_url>" and copy the link which appears after that. (It will be in the fomat [yourmoodlesiteurl]/enrol/lti/tool.php?id=x)
  8. Back on the previous tab (External tool configuration), enter a Tool Name, the Tool URL (paste the link you just copied), any consumer key you want, and in the Shared Secret, enter the Secret. Save your changes.
  9. Navigate back to your course page, and again, go to the settings of your LTI.
  10. Now choose the LTI that you just created from the 'Preconfigured tool' dropdown, and save your changes.
  11. Log in as a student.
  12. Visit the course and click on the LTI activity.
  13. Check the activity displays as expected.

Problemas comunes

The setup of LTI can be tricky, these are some of the most frequently reported issues by Moodle users. As always, enabling debug information can help trace the roots of a problem.

A required parameter (oauth_consumer_key) was missing

This exception occurs when the Tool Consumer is missing a Consumer Key parameter. As mentioned above, the consumer key can be anything you want so long as the field isn't left empty. Best keep it simple and without special characters, however.

User has free access to the entire site, isn't contained to the course

This can happen when the course content isn't embedded. Enable Allow frame embedding in Site Administration > Security > HTTP Security and, on the consumer site LTI tool settings, add force_embed=1 in the custom parameters settings.

This XML file does not appear to have any style information associated with it.

Some tool consumers do not support cartridge URLs such as Sakai and Chamilo, in that case, it's better to use the launch URL.

Invalid request

This exception can happen for various reasons, so it can be difficult to trace the root of the problem. One of the possibilities is that deep linking is enabled in the tool consumer. Disabling it can help in LMS that have it like Chamilo and Canvas.

Exception - Call to a member function out() on string

Happens when the tool provider isn't handling custom favicons correctly, in which case it's probably a good idea to remove the custom favicon altogether or experiment with its properties.

Vea también


¿Más preguntas?

Por favor hágalas en idioma inglés en el foro LTI and Moodle forum en moodle.org