简体   繁体   English

如何在 LTI 1.3 中访问课程内容和其他 canvas API 数据

[英]How to access Course content and other canvas API data in LTI 1.3

I have created and set up LTI 1.3 tool with LTI Key by following the canvas document - https://community.canvaslms.com/docs/DOC-16794-canvas-release-lti-13-and-lti-advantage-2019-06-22我按照 canvas 文档 - https://community.canvaslms.com/docs/DOC-16794-canvas-release-lti-13-and-lti-advantage-创建并设置了 LTI 1.3 工具06-22

I can launch the tool inside the canvas, and able to do the auth process and got the 'id_token' as response and canvas display my success page.我可以在 canvas 中启动该工具,并且能够执行身份验证过程并获得“id_token”作为响应,canvas 显示我的成功页面。

Now I need to access ( https://canvas.instructure.com/doc/api/courses.html#method.courses.show ) course content by canvas API, I can't access it using LTI key.现在我需要访问( https://canvas.instructure.com/doc/api/courses.html#method.courses.show )课程内容canvas ZDB974238714CA8DE634A7CE1D083A14使用LTIF4访问

What's the solution for this?解决方案是什么? How can I access the content data or canvas API in LTI 1.3 tool using LTI Key?如何使用 LTI 密钥在 LTI 1.3 工具中访问内容数据或 canvas API?

You can not access the canvas rest API using your LTI credentials.您无法使用您的 LTI 凭证访问 canvas rest API。 Event though they both use OAuth2 flows, they use different authentication scopes, keys, and flows. Event 尽管它们都使用 OAuth2 流,但它们使用不同的身份验证范围、密钥和流。

If you want to access the canvas rest API, you will need to store a 'Canvas Developer Key' in addition to the LTI keyset.如果您想访问 canvas rest API,除了 LTI 密钥集之外,您还需要存储“Canvas Developer Key”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM