Department of Mathematics and Statistics

WeBWorK-Canvas Set-up Instructions

You will need to complete the steps below for each WeBWorK course that you will use. For example, the (Username, Password) pair is attached to the course, so you need to change it for each course.

Change WeBWorK course Password and set your Course Information

Change your initial password from the one provided by the WeBWorK administrator to a personal password for this course.

  1. Go to the UNCG WeBWorK server. Select your course ID, provided to you from the WeBWorK administrator. Enter your course Username and Password. Your course Username is your UNCG email address. Your initial course Password is provided to you from the WeBWorK administrator.
    WeBWorK courses page
  2. Select User Settings. Enter your initial Password provided by the WeBWorK administrator. Choose and enter a New Password. Click the Change User Settings button to confirm the changes.
    WeBWorK User Settings page
  3. Edit the Course Info box.
    WeBWorK course Info page
  4. Click Course Configuration. Change the "Inactivity time before ..." to 18000 (5 hours) instead of 1800 (30 minutes).
    WeBWorK course settings page

Create the link between Canvas and WeBWorK

In order to integrate WeBWorK into Canvas, you need to create an App that allows Canvas to access your WeBWorK course. You get the passcode from WeBWorK, and then share it with Canvas.

  1. In your WeBWorK course, select File Manager (under Instructor Tools). Click the ^ to show your course ID. Select course.conf, and click View.
  2. WeBWorK course configuration file
  3. Use CTRL-f (or ⌘-f on a Mac), and search for LTIBasicConsumerSecret. You will find a line that looks like
    $LTIBasicConsumerSecret = "shared-secret"; #This must be set
    where shared-secret is a mess. The mess between the quotes is the Shared Secret you need below. Highlight the portion between the quotes, and copy it using CTRL-c (or ⌘-c on a Mac).
  4. Go to Canvas.
  5. Click Settings. Choose the Apps tab. Click the View App Configurations button.
  6. Canvas create App page 1
  7. Click the +App button.
  8. Canvas create App page 2
  9. Enter 1WeBWorK for the Name. (The leading 1 will make it easier to find, as it will be first in the alphebetized list of Apps.) Enter webwork for the Consumer Key. Paste in the shared-secret mess for the Shared Secret using CTRL-v (or ⌘-v on a Mac). Enter for the Launch URL, where COURSEID is replaced with your course ID, provided to you from the WeBWorK administrator.
  10. Enter for the Domain. Set the Privacy flag to Public. Click Submit.
    Canvas add App page

Create a Canvas assignment that uses WeBWorK

This section will walk you through creating an "Orientation to WeBWorK" assignment for the students to get used to the inteface. Similar steps can be used to create other assignments.

  1. In your WeBWorK course, click Hmwk Sets Editor. Click the Import tab.
    • Import from where?: Select set0.def.
    • Import sets with names: Enter orientation
    • Assign this set to which users?: Select all current users.
    • Click Take Action!
    WeBWorK import assignment page
  2. Create an assignment in Canvas as usual, with the following modifications.
    • Set the Points to 100, since WeBWorK reports percentages.
    • Set the Submission Type to External Tool, and click Find. Select the WeBWorK App you just created.
    • Append /orientation to the resulting External Tool URL so that it says, where COURSEID is your course ID. Check to load the tool in a new tab if you want WeBWorK to open in its own tab. Otherwise, it opens within a Canvas page.
  3. Canvas create new assignment page

To create your own assignment in WeBWorK, the process is similar. Instead of clicking the Import tab, you click the Create tab and choose a name for your new set. The name cannot contain any spaces, and it is this name you use in place of orientation in the External Tool URL. (Note: You can edit the WeBWorK assignment even after creating the Canvas assignment that links to it.) In WeBWorK, go to the Library Browser to select questions to add to your assignment.

Useful Links