Skip to content

Testing LTI integration with Canvas

cjcolvar edited this page Aug 23, 2017 · 9 revisions

This guide will walk you through how to setup the Canvas Learning Management System (LMS) and configure your Avalon development environment in order to test integration through LTI (Learning Tools Interoperability).

Setup Canvas with Docker

docker run -d --name canvas-docker -p 80:3000 -d lbjay/canvas-docker

Configure Avalon LTI Authentication

  1. Uncomment the LTI authentication block under development in config/authentication.yml so it looks like:
    - :name: Avalon Lti OAuth
      :provider: :lti
      :hidden: true
      :params:
        :oauth_credentials:
          key: 'secret'
    
  2. Create your own key/secret pair in config/authentication.yml to replace key: 'secret'
  3. Start your rails server: bundle exec rake hydra:server

Configure Canvas for Avalon

  1. Login to Canvas The Canavs docker container has default credentials of [email protected] / canvas-docker
  2. Create a Course Click Start a New Course and fill out the form
  3. Setup an External Tool
    1. In the new course, go to Settings
    2. Click the Apps tab
    3. Click the +App button
    4. Fill out the form with a name, the key/secret pair you made before, and a Launch URL that points to your Avalon instance: http://127.0.0.1:3000/users/auth/lti/callback
  4. Add the External Tool to a Module
    1. Go to Modules
    2. Create a new Module
    3. Click the + button within your new module
      1. Select External Tool from the dropdown menu
      2. Fill in the Launch URL from above and give it a name
      3. Click Add Item

Configuration of Avalon LTI

Test