Open jlsiewert opened 5 days ago
Hello @jlsiewert No this is not a bug, coz I am using this same library and I have customers in PROD using this with their LMS ( Moodle, Avendoo ) and everything is LIVE :) I have an article which I wrote when I was breaking my head on ltijs last year https://medium.com/@debu2in/implementing-ltiv1-3-using-ltijs-1ab38ab87567 Please do read and check if it helps Also, I would like to help with this I am available on discord siddharthroyc_97017
From what I figured is that I always needed ngrok https tunelling my local port on which LTI app was running and a LMS hosted some domain on https for all this to work , esp the auth part, that is the spot where I can see you are stuck :)
Describe the bug Launching a Deep Link from Moodle fails with an invalid token error.
Expected behavior I verified the setup on both the Moodle and Tool side.
Provider logs
Ltijs version
NodeJS version
Platform used
Additional context
it looks like Ltijs is attempting to get the JWK key through a
GET
request to the keyset url (<MOODLE>/mod/lti/token.php
). I would expect Moodle to respond with a JSON (like canvas does, but it looks like Moodle now expects a POST request to receive the tokens. In Ltijs, token URLs are always resolved with a GET request in src/Utils/Auth.js#L99. It looks like that is a bug.