Closed brettjforsyth closed 2 years ago
Hello @brettjforsyth, this is most likely not an issue with Ltijs, the only other time i encountered this issue it was caused by misconfiguration of redis caching. I have a couple of questions but i am not sure how to approach this issue:
Redis
and Dynamic Settings
configuration steps of Canvas? Both are needed in order for LTI to work properly.http://canvas.docker
as the URL, but in the logs you are receiving requests at the standard https://canvas.instructure.com
, i assume you also registered the Platform with the correct URL (Canvas uses multi tenancy, so every instance sends the same issuer claim).Apart from that i don't see any issues with your configuration. That being said, i was able to consistently get a local version of Canvas to work by installing it manually instead of using docker. Many of the docker versions of Canvas have issues with LTI, including the widely used Bitnami version, due to the installation steps i mentioned above.
HI @Cvmcosta,
Yeah apologies about the bug flag. I also don't think this is an issue with ltijs. I had just seen your replies to some of the other closed issues and figured you might have some insights.
I am not 100% certain that it is going through redis and dynamic settings. I have checked all the config files and they appear correct. However I am beginning to suspect the host needs to change as when I try to run redis-cli it won't connect. I'll report back after messing about a little bit. I think this is likely the crux of the whole issue.
As for the https://canvas.instructure.com I saw that as well but not sure why that would be coming up. Where would that potentially be misconfigured?
Regards,
Brett
Hello, sorry for taking too long to reply. I don't really think that the Canvas URLs are misconfigured. And even if they were it wouldn't cause the issues you were getting.
It turns out there is a fix for this. You have to get the canvas install just right. Here's a good writeup: https://community.canvaslms.com/t5/Canvas-Developers-Group/Canvas-LTI-1-3-Error-Unknown-Key-Type/m-p/390285#M6345
Been hacking away all day on this and have hit an impasse
Setup Canvas running in docker as per their quick start Automated Setup URL is http://canvas.docker no ssl - https://github.com/instructure/canvas-lms/wiki/Quick-Start Developer Key setup
localhost wasn't working so changed it to IP
settings in the demo server index.js
await lti.registerPlatform({ url: 'http://canvas.docker', name: 'canvas', clientId: '10000000000002', authenticationEndpoint: 'http://canvas.docker/api/lti/authorize_redirect', accesstokenEndpoint: 'http://canvas.docker/login/oauth2/token', authConfig: { method: 'JWK_SET', key: 'http://canvas.docker/api/lti/security/jwks' } }) }
I have the .env setup with my DB and LTI_Key from the dev key
Getting this as output on connection
I saw the other note that this is likely due to redis config issues but I am stumped. There is a redis instance that gets booted when you bring up the canvas environment. All of the end points are working except http://canvas.docker/login/oauth2/token which has route error
I also tried following the info in https://community.canvaslms.com/t5/Developers-Group/Canvas-LTI-1-3-Error-Unknown-Key-Type/td-p/389023 but either I am missing something or it doesn't work on the docker version of canvas.
Thoughts? Am I missing something obvious?