Skip to main content

Canvas

The Canvas plugin connects the platform to learning management systems through LTI 1.3: Canvas, and any other LMS that supports LTI 1.3 with deep linking. A teacher places an activity in a course, picking a template, its resources and some of the course's files, and may bind a team to the course. A student who opens the activity starts a workspace of their own, in the course's team or one of theirs, that already holds those files. Turn it on on the Plugins page; the quick start shows the first steps in pictures.

The plugin needs the platform's object store, which keeps the course files of activities, and the platform's external URL, which the LMS sends people to.

Registering with an LMS​

Administrators with canvas:manage register LMSs on the Canvas page. Register with an LMS makes a link that registers the platform with an LMS. It is valid for an hour and works once.

In Canvas:

  1. Go to Admin → Developer Keys → + Developer Key → LTI Registration.
  2. Paste the link, review what the platform asks for, and choose Enable & Close.
  3. Go to Admin → Apps → Manage → IDEKube. Under Availability and Exceptions, make it Available: Canvas installs a registered app as unavailable to every course.

The LMS then appears on the page. The platform asks for the deep linking placements Link Selection (module items) and Assignment Selection. It also asks for the names and emails of people, but no scopes of the LMS's API.

An LMS without dynamic registration takes the platform's login URL, launch URL and public keys, shown under the link, instead.

Course files​

Teachers pick course files through the LMS's REST API, as themselves. This needs a developer key of that API. In Canvas:

  1. Go to Admin → Developer Keys → + Developer Key → API Key.
  2. Give it the redirect URI <external_url>/v1/canvas/oauth/callback.
  3. Turn the key on.
  4. On the Canvas page, edit the LMS and enter the key's client ID and secret.

Without a key, teachers place activities without files.

Once per LMS, a teacher allows the platform to read their files, in a window of the LMS. The platform keeps the authorization sealed and renews it.

The chosen files are taken when the activity is placed, and kept in the object store as one archive. Together they may weigh max_files_mb (the canvas settings section, 200 MB by default). Later changes to the course's files do not reach the activity. A teacher who opens the activity can take the files again.

Connecting people​

The LMS is not a way to sign in, and it makes no accounts. People sign in to the platform as they always do, and connect who they are on the LMS to their account themselves:

  • Someone who opens an activity for the first time lands on a page of the platform, in a tab of its own. They sign in, and Connect and continue. The page shows who the LMS says they are, so that they connect themselves and not someone else.
  • A teacher placing an activity for the first time is asked to connect in a window of the platform, from the picker inside the LMS. Once they are connected, the picker acts as their account, but only to place that activity: the LMS's frame never holds a session of the platform.

A person of the LMS is connected to one account at most, and an account may connect people of several LMSs. People see and remove their connections in their profile, under Canvas. Removing one keeps them in the teams they joined, and forgets their authorization to read course files.

Course teams and quotas​

A course may be bound to a shared team of the platform, whose quota, plan, credit and member limits apply to it as to any team. The plugin makes no team and sets no quota.

  • Teachers. When placing an activity, a teacher picks the Course team among the shared teams they are an admin or owner of, or No bound team (students use their own teams). A teacher changes or unbinds it later on the activity's page. One team may be bound to several courses. The course's teachers become admins of its team when it is bound, and so do instructors, teaching assistants, content developers and administrators of the course at their next launch.
  • Students. A launch records that a student takes the course, and adds them to no team. Before they start their workspace, the activity's Team lists the course's team, marked join and share quota until they belong to it, then their personal team and the other teams they may make workspaces in. Starting in the course's team makes them a member of it: the workspace counts against its quota, and the course's teachers, as its admins, may open it. Starting in a team of their own uses that team's quota; the workspace runs the activity's template and gets its files all the same, even when the template is private to the teacher's team.

Activities​

The teacher's picker opens inside the LMS. The placed activity opens in a new tab: a frame inside the LMS could not keep the workspace's session.

From the activity, a student starts their workspace in the team they chose, with the template and resources the teacher chose. Each student has one workspace per activity; deleting that workspace lets them choose a team and start a new one. At its first start, the workspace extracts the course files into ~/<course>/<activity>/. Once that directory exists, the files are not extracted again.

The pages the LMS frames are under /lti/. They may be framed by any HTTPS site, and they do nothing without a launch that the LMS signed.

Turning it off​

Launches, the picker and activity pages answer 404. Workspaces keep their files, and teams keep their members. Registrations, courses and activities are kept for when the plugin is turned on again.