hayk1
New Member

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.

  1. 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.
  2. 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 🙂

Labels (2)
0 Kudos
3 Replies
matthew_buckett
Community Contributor

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.

0 Kudos
matthew_buckett
Community Contributor

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

0 Kudos

I'm creating line items related to this https://canvas.instructure.com/doc/api/line_items.html documentation.
Thanks for suggestion will take a look to this doc as well

0 Kudos