Drieam / LtiLauncher

An extraction layer to simplify the setup and launching of LTI tools.
https://drieam.github.io/LtiLauncher/
MIT License
7 stars 1 forks source link

Cannot get LtiLauncher working with Tsugi based LTI tool #51

Open torinfo opened 2 years ago

torinfo commented 2 years ago

The error I get is:

Invalid launch since redirect_uri does not match tool setting

I think it is because of Check 7. ii redirect_uri matches the tools target_link_uri

Tsugi uses a different redirect_uri, and in Moodle and other LMS's you can specify a list of expected possible redirect_uris. I cannot find a way to do that for LtiLauncher.

What is the best way to proceed?

StefSchenkelaars commented 2 years ago

Hi @torinfo I'm not sure if I really get the problem. What redirect are we talking about? But if the target_link_uri is not mating the redirect_uri, the tool is not following the specification since those should be the same. Could you guide me trough it?

torinfo commented 2 years ago

Hi, We're talking about the redirect of the tool. The redirect that is checked in check 7 in your steps. Whther that is according to specs, I don't know. I do know that all the LMS's I've used so far allow for the redierct to be configured (Moodle, Blackboard, Canvas) (mostly as a list) just like in an ordinary oidc redirect.

See below, the setup for Moodle. The final launch URL would be something like https://xot310beta.dlearning.nl/lti13_launch.php?template_id=860

The redirect_uri is quite different.

image

StefSchenkelaars commented 2 years ago

Ah, ok. In our tool that's called the target_link_uri. Yes that's the redirect of the OIDC flow but it's also the actual launch url.

torinfo commented 2 years ago

@StefSchenkelaars In Tsugi, the launch url and the redirect_uri are not the same. See also my edit (the three lines above the image).