Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

MATLAB GraderCanvas (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 密钥”的新开发人员密钥。

  1. 在 Open Account 部分,要选择的帐户名称是 MathWorks

  2. 在出现提示时提供以下值:

    字段名称字段值
    Key NameMATLAB Grader LTI 1.3
    Owner emailsupport@mathworks.com
    Redirect URLhttps://learningtool.mathworks.com/lti/redirect
    NotesAutomatically grade MATLAB code
    MethodManual
    TitleMATLAB Grader LTI 1.3
    DescriptionAutomatically grade MATLAB code
    Target Link URIhttps://learningtool.mathworks.com/v1p3/launch
    OpenID Connect Initiation URLhttps://learningtool.mathworks.com/lti/oidc
    JWK MethodPublic JWK URL
    Public JWK URLhttps://learningtool.mathworks.com/lti/jwk
  3. 展开 Additional Settings 并在出现提示时提供以下值:

    字段名称字段值
    Domainhttps://learningtool.mathworks.com

步骤 4:启用 LTI Advantage 服务

在 Developer Key 配置页面上,展开 LTI Advantage Service 部分并且设置以下服务,如下所示:

LTI Advantage Services selection screen with the required services selected.

选定服务:

  • 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 for LTI services.

步骤 5:创建 Assignment Selection 位置

Placements 下,从下拉菜单中选择 Assignment Selection。展开新的 Assignment Selection 部分并提供以下值:

字段名称字段值
Target Link URIhttps://learningtool.mathworks.com/v1p3/launch
Select Message Type选择 LtiResourceLinkRequest

如果存在任何其他 Account NavigationLink Selection 位置,请将其从位置列表中删除。

步骤 6:保存并启用开发人员密钥

  1. 在 Developer Key 配置页面,点击 Save 并返回到开发人员密钥列表。

  2. 在开发人员密钥列表中,找到您刚刚创建的密钥,并将密钥的 StateOFF 切换为 ON

  3. 确认您的选择以启用 MATLAB Grader 的开发人员密钥。

步骤 7:确定 MATLAB Grader 的“客户端 ID”

在开发人员密钥列表中,找到为 MATLAB Grader 新创建的密钥,并复制数值客户端 ID 值(位于 Details 下)。您在以下步骤中需要此客户端 ID。

步骤 8:为 MATLAB Grader 生成部署 ID

  1. 在 Canvas 中,转至 Settings Apps

  2. 点击 View App Configurations

  3. 当显示已启用的外部 App 列表时,点击 + App

  4. Configuration Type选择“By Client ID”,并输入您在上一步中获得的数值客户端 ID 值。确保此字段中没有前导或尾随空格。

  5. 点击提交。在出现提示时点击 Install,确认您要安装 MATLAB Grader LTI 1.3 App。

  6. 在再次显示已安装的 App 列表时,点击 MATLAB Grader LTI 1.3 右侧的齿轮图标,然后选择 Deployment ID 选项。

  7. 复制 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. 在步骤 1 下,选择 LTI 版本 LTI 1.3

  2. 在步骤 3 下,在出现提示时提供以下值。这些值适用于 Canvas 的生产实例。如果您在非生产环境中使用 Canvas,请参阅 Configuring LTI Advantage Tools

    注意

    使用下表中为颁发者、公共密钥集 URL、身份验证令牌端点和 OIDC 身份验证请求端点提供的 URL。请勿使用个性化 URL 或 FQDN URL。

    字段名称字段值
    颁发者https://canvas.instructure.com
    客户端 ID使用您在前面的步骤中获得的客户端 ID 值。
    公共密钥集 URLhttps://canvas.instructure.com/api/lti/security/jwks
    身份验证令牌端点https://canvas.instructure.com/login/oauth2/token
    OIDC 身份验证请求端点https://canvas.instructure.com/api/lti/authorize_redirect
    部署 ID

    使用您在前面的步骤中获得的部署 ID 值。

  3. 点击提交

教师访问准备就绪

集成现已完成。教师现在可以将 MATLAB Grader 习题添加到他们的课程中。

获取帮助

在您使用 LTI 1.3 将 MATLAB Grader 与 LMS 集成过程中的任何阶段,如果需要帮助,都可以联系 MathWorks 技术支持

相关主题