|
| 1 | +{% extends "admin/_admin_base.html" %} |
| 2 | + |
| 3 | +{% block title %} |
| 4 | +LTI Configuration |
| 5 | +{% endblock %} |
| 6 | + |
| 7 | +{% block content %} |
| 8 | +<div class="admin-page admin-page--narrow lti-config"> |
| 9 | + <a href="/admin/instructor/menu" class="back-link">Back to Instructor Dashboard</a> |
| 10 | + |
| 11 | + <div class="page-header"> |
| 12 | + <h1>LTI Configuration</h1> |
| 13 | + </div> |
| 14 | + |
| 15 | + <div class="course-info"> |
| 16 | + <h3>{{ course.course_name }}</h3> |
| 17 | + <p>Base Course: {{ course.base_course }}</p> |
| 18 | + </div> |
| 19 | + |
| 20 | + <div id="alert-container"></div> |
| 21 | + |
| 22 | + <div class="panel"> |
| 23 | + <p>LTI is <strong>Community Supported!</strong> It works with various LMS platforms (Canvas, Sakai, |
| 24 | + Moodle, and Desire2Learn) but you need to know how to configure things on your own LMS. There are |
| 25 | + two different LTI configurations available: LTI 1.1 (traditional) and LTI 1.3. LTI 1.1 can be |
| 26 | + configured by the instructor. LTI 1.3 requires the LMS admin to configure the tool, but is more |
| 27 | + secure and has more features.</p> |
| 28 | + |
| 29 | + <p>Please <a href="https://guide.runestone.academy/managing-your-course.html#lti_integration" |
| 30 | + rel="noopener noreferrer" target="_blank">read the docs</a> first, then feel free to ask for |
| 31 | + help on the <code>#lti_community_support</code> channel on Discord. If you have it working on |
| 32 | + another LMS please help us out and contribute to the docs so that others can benefit.</p> |
| 33 | + </div> |
| 34 | + |
| 35 | + <div class="panel"> |
| 36 | + <h2>LTI 1.1 Integration</h2> |
| 37 | + <p>To launch LTI on Runestone use <code>https://runestone.academy/runestone/lti</code></p> |
| 38 | + <p>You will need to generate a key and secret that will be used to communicate with the LMS. (See |
| 39 | + <a href="https://guide.runestone.academy/managing-your-course.html#lti_integration" |
| 40 | + rel="noopener noreferrer" target="_blank">the docs</a>.)</p> |
| 41 | + |
| 42 | + <div class="lti-actions"> |
| 43 | + <button id="create_lti" class="btn btn-primary" onclick="generateLTIKeys()" |
| 44 | + {% if consumer %}disabled{% endif %}>Create LTI Key and Secret</button> |
| 45 | + <button id="delete_lti" class="btn btn-danger" onclick="deleteLTIKeys()" |
| 46 | + {% if not consumer %}disabled{% endif %}>Remove LTI Key and Secret</button> |
| 47 | + </div> |
| 48 | + |
| 49 | + <table class="lti-keys-table"> |
| 50 | + <tr> |
| 51 | + <th>Consumer Key:</th> |
| 52 | + <td> |
| 53 | + <span id="ckey_value">{{ consumer }}</span> |
| 54 | + <a class="copy-link" title="Copy" onclick="copyElementToClipboard('ckey_value')">📋</a> |
| 55 | + </td> |
| 56 | + </tr> |
| 57 | + <tr> |
| 58 | + <th>Secret:</th> |
| 59 | + <td> |
| 60 | + <span id="secret_value" data-secret="{{ secret }}">{% if secret %}••••••••{% endif %}</span> |
| 61 | + <button type="button" class="btn btn-sm" id="show_secret" onclick="toggleSecret()" |
| 62 | + {% if not secret %}disabled{% endif %}>Show Secret</button> |
| 63 | + <a class="copy-link" title="Copy" onclick="copySecretToClipboard()">📋</a> |
| 64 | + </td> |
| 65 | + </tr> |
| 66 | + </table> |
| 67 | + </div> |
| 68 | + |
| 69 | + <div class="panel"> |
| 70 | + <h2>LTI 1.3 Integration</h2> |
| 71 | + <p>Your LMS administrator will need to configure Runestone as a tool available on your LMS. This will |
| 72 | + only need to happen one time for your LMS. Once it is configured you can use the tool in any course |
| 73 | + you have on Runestone. Point them to |
| 74 | + <a href="https://guide.runestone.academy/managing-your-course.html#lti1p3_integration" |
| 75 | + rel="noopener noreferrer" target="_blank">the Runestone LTI 1.3 documentation</a>. (This means |
| 76 | + this integration is NOT available if you are using the free Canvas for Teachers or some other hosted |
| 77 | + LMS that does not have a system administrator you can contact.)</p> |
| 78 | + |
| 79 | + <p>Each Runestone course can only be linked to ONE LMS course via LTI 1.3. You can use multiple different |
| 80 | + Runestone courses (to make use of multiple books) in one LMS course. If you need to disassociate this |
| 81 | + Runestone course from any LTI links, you can do so by clicking the button below. Doing so will NOT |
| 82 | + delete any assignments or grades in the LMS, but will remove the link between the two systems. You |
| 83 | + can even relink the course to the same LMS course later if you need to.</p> |
| 84 | + |
| 85 | + <div class="lti-actions"> |
| 86 | + <button id="delete_lti1p3" class="btn btn-danger" onclick="deleteLTI1p3()">Remove LTI 1.3 |
| 87 | + Association</button> |
| 88 | + </div> |
| 89 | + |
| 90 | + <h3>LTI 1.3 Options</h3> |
| 91 | + |
| 92 | + <div class="settingsbox"> |
| 93 | + <div class="checkbox-container"> |
| 94 | + <input type="checkbox" id="ignore_lti_dates" {% if ignore_lti_dates %}checked{% endif %} |
| 95 | + onchange="updateCourse(this,'ignore_lti_dates')"> |
| 96 | + <label for="ignore_lti_dates">Ignore LTI 1.3 Date Changes</label> |
| 97 | + </div> |
| 98 | + <div class="setting-description">Runestone will try to update assignment due dates. Check to disable |
| 99 | + automatic updates of assignment due dates from LMS assignment settings.</div> |
| 100 | + </div> |
| 101 | + |
| 102 | + <div class="settingsbox"> |
| 103 | + <div class="checkbox-container"> |
| 104 | + <input type="checkbox" id="no_lti_auto_grade_update" |
| 105 | + {% if no_lti_auto_grade_update %}checked{% endif %} |
| 106 | + onchange="updateCourse(this,'no_lti_auto_grade_update')"> |
| 107 | + <label for="no_lti_auto_grade_update">Do not auto update LTI grades</label> |
| 108 | + </div> |
| 109 | + <div class="setting-description">Runestone will try to update assignment scores in your LMS any time |
| 110 | + a student completes a problem if that assignment's grades are set to released. Check this to |
| 111 | + disable this behavior and only sync grades when you trigger it from the grading page.</div> |
| 112 | + </div> |
| 113 | + </div> |
| 114 | +</div> |
| 115 | +{% endblock %} |
| 116 | + |
| 117 | +{% block page_js %} |
| 118 | +<script src="/staticAssets/js/admin/lti_config.js"></script> |
| 119 | +{% endblock %} |
0 commit comments