将 MATLAB Grader 与 Canvas (Instructure) 集成 - LTI 1.3
LMS 管理员:将 MATLAB Grader 添加到 Canvas App 中
要将 MATLAB® Grader™ 添加到 Canvas® App 中,请按照本节中的步骤执行操作。
注意
对于复制然后粘贴到集成字段中的所有文本,请确保文本中没有前导和尾随空格,否则集成可能无法正常工作。
步骤 1:以 LMS 管理员身份登录到 Canvas
以具有管理员权限(特别是能够创建开发人员密钥和配置 LTI App)的用户身份登录到您所在大学的 Canvas LMS 实例。登录页面的 URL 可能类似于以下示例:https://mathworks.instructure.com/
。
步骤 2:转至 Canvas 中的 Developer Keys 页
转至 Developer Keys 页面。此页面的 URL 可能类似于以下示例:https://mathworks.instructure.com/accounts/1/developer_keys
。
步骤 3:为 MATLAB Grader 创建新的 LTI 密钥
按照 How do I configure an LTI key for an account? 中的 Canvas 说明,为 MATLAB Grader 创建一个类型为“LTI 密钥”的新开发人员密钥。
在 Open Account 部分,要选择的帐户名称是 MathWorks。
在出现提示时提供以下值:
字段名称 字段值 Key Name MATLAB Grader LTI 1.3
Owner email support@mathworks.com
Redirect URL https://learningtool.mathworks.com/lti/redirect
Notes Automatically grade MATLAB code
Method Manual
Title MATLAB Grader LTI 1.3
Description Automatically grade MATLAB code
Target Link URI https://learningtool.mathworks.com/v1p3/launch
OpenID Connect Initiation URL https://learningtool.mathworks.com/lti/oidc
JWK Method Public JWK URL
Public JWK URL https://learningtool.mathworks.com/lti/jwk
展开 Additional Settings 并在出现提示时提供以下值:
字段名称 字段值 Domain https://learningtool.mathworks.com
步骤 4:启用 LTI Advantage 服务
在 Developer Key 配置页面上,展开 LTI Advantage Service 部分并且仅设置以下服务,如下所示:
选定服务:
Can create and view assignment data in the gradebook associated with the tool.
Can view assignment data in the gradebook associated with the tool.
Can view submission data for assignments associated with the tool.
Can create and update submission results for assignments associated with the tool.
Can update public jwk (JSON Web Key) for LTI services.
步骤 5:创建 Assignment Selection 位置
在 Placements 下,从下拉菜单中选择 Assignment Selection。展开新的 Assignment Selection 部分并提供以下值:
字段名称 | 字段值 |
---|---|
Target Link URI | https://learningtool.mathworks.com/v1p3/launch |
Select Message Type | 选择 LtiResourceLinkRequest 。 |
如果存在任何其他 Account Navigation 或 Link Selection 位置,请将其从位置列表中删除。
步骤 6:保存并启用开发人员密钥
在 Developer Key 配置页面,点击 Save 并返回到开发人员密钥列表。
在开发人员密钥列表中,找到您刚刚创建的密钥,并将密钥的 State 从 OFF 切换为 ON。
确认您的选择以启用 MATLAB Grader 的开发人员密钥。
步骤 7:确定 MATLAB Grader 的“客户端 ID”
在开发人员密钥列表中,找到为 MATLAB Grader 新创建的密钥,并复制数值客户端 ID 值(位于 Details 下)。您在以下步骤中需要此客户端 ID。
步骤 8:为 MATLAB Grader 生成部署 ID
在 Canvas 中,转至 Settings Apps。
点击 View App Configurations。
当显示已启用的外部 App 列表时,点击 + App。
为 Configuration Type 选择“By Client ID”,并输入您在上一步中获得的数值客户端 ID 值。确保此字段中没有前导空格或尾随空格。
点击 Submit。在出现提示时点击 Install,确认您要安装 MATLAB Grader LTI 1.3 App。
在再次显示已安装的 App 列表时,点击 MATLAB Grader LTI 1.3 右侧的齿轮图标,然后选择 Deployment ID 选项。
复制 MATLAB Grader LTI 1.3 的“Deployment ID”的值。您在以下步骤中需要此部署 ID。
步骤 9:以 LMS 管理员身份登录到 MATLAB Grader
注意
登录到 MATLAB Grader 后,请使用与 LMS 管理员关联的 MathWorks® 帐户。帐户持有人还必须是管理 MathWorks 许可证的许可证管理员,并且必须已获得 MathWorks 客户支持或您所在大学的其他许可证管理员授予的 MATLAB Grader 访问权限。
登录 URL https://grader.mathworks.com,然后点击 LMS 集成。或者,您可以直接访问该页面,网址为 https://grader.mathworks.com/lti_credentials。
步骤 10:在 MATLAB Grader 中注册 LMS 信息
在 LMS 集成页面上:
在步骤 1 下,选择 LTI 版本 LTI 1.3。
在步骤 3 下,在出现提示时提供以下值。这些值适用于 Canvas 的生产实例。如果您在非生产环境中使用 Canvas,请参阅 Configuring LTI Advantage Tools。
注意
仅使用下表中为颁发者、公共密钥集 URL、身份验证令牌端点和 OIDC 身份验证请求端点提供的 URL。请勿使用个性化 URL 或 FQDN URL。
字段名称 字段值 颁发者 https://canvas.instructure.com
客户端 ID 使用您在前面的步骤中获得的客户端 ID 值。 公共密钥集 URL https://sso.canvaslms.com/api/lti/security/jwks
身份验证令牌端点 https://sso.canvaslms.com/login/oauth2/token
OIDC 身份验证请求端点 https://sso.canvaslms.com/api/lti/authorize_redirect
部署 ID 使用您在前面的步骤中获得的部署 ID 值。
点击提交。
教师访问准备就绪
集成现已完成。教师现在可以将 MATLAB Grader 习题添加到他们的课程中。
如果教师已经在 https://grader.mathworks.com 创建了评判内容,则可以按照向 LMS 课程中添加 MATLAB Grader 评判项目中的说明添加内容。
否则,教师可以转至 https://grader.mathworks.com 以设置题库(创建题库和分组)并开始添加内容(向 LMS 课程中添加 MATLAB Grader 评判项目)。
获取帮助
在您使用 LTI 1.3 将 MATLAB Grader 与 LMS 集成过程中的任何阶段,如果需要帮助,都可以联系 MathWorks 技术支持。