Assignments created with LTI 1.3 line_items not shown in calendar and not opening in new tab
Hi all, I'm developing canvas LTI 1.3 integration with our system, and have two questions.
- I did as described in documentation and when I'm creating line item I am setting "endDateTime": "2022-02-07T22:23:11+0000" but it's not showing in calendar and appears in UNDATED list.
- How can I force created assignment to "Load in new Tab" always instead of iframe, I tried
"windowTarget": "_blank" inside developers keys, but no good.
Thanks in advance 🙂
We have the "windowTarget": "_blank" working for LTI 1.3 tools, but don't have a specified on the developer key, but on the placement in the developer key, I don't know if this is the problem you are seeing but might be worth trying.
I assume you're using the AGS service (https://canvas.instructure.com/doc/api/line_items.html) to create the line item? It doesn't look like it's set in the assignments too either from your other screenshot, are you sure your request is working? If you try to set the max score to something other than 100 does that work?
If you're wanting a new window because you don't have HTTPS in development, I'd recommend having a look at something like https://github.com/FiloSottile/mkcert to setup HTTPS in development as browsers also limit some features to not work on HTTP.
Am I correct in thinking you are not using the AGS service, as you are returning the line items in the deep linking response (https://canvas.instructure.com/doc/api/file.content_item.html)?
To returns a LTI launch I think you need to follow the format outlined in this specification: https://www.imsglobal.org/spec/lti-dl/v2p0#lti-resource-link