numbas / numbas-lti-provider

An LTI tool provider to run Numbas exams
https://docs.numbas.org.uk/lti/en/latest/
Other
11 stars 12 forks source link

Give a sensible error message when an LTI launch message is invalid #326

Closed christianp closed 1 week ago

christianp commented 1 week ago

This requires some changes to pylti1p3, which at the moment just throws the same LtiException object for any error.

If the LTI launch uses a deployment ID that the LtiTool object doesn't recognise, a "not an LTI launch error" is thrown.

We should distinguish between cases where there's really no message launch, and those where it's present but doesn't validate.