question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot connect to self-hosted Canvas lms

See original GitHub issue

I have tried ltijs to connect to our self-hosted Canvas at http://dvseok.shop but I cannot get token in function lti.onConnect, it returend undefined. this is our config:

await lti.registerPlatform({
    url: "http://dvseok.shop",
    name: "dvseok",
    clientId: "10000000000003",
    authenticationEndpoint: "http://dvseok.shop/api/lti/authorize_redirect",
    accesstokenEndpoint: "http://dvseok.shop/login/oauth2/token",
    authConfig: {
      method: "JWK_SET",
      key: "http://dvseok.shop/api/lti/security/jwks",
    },
  });

I also tried with your demo project ltijs-demo-server and ltijs-demo-client, when I go to browser of ltijs-demo-client, it always displayed Failed retrieving members! Error: Missing lti key..

I tried to calling a GET request /info demo server with my Canvas LTI key. This is the response:

{
    "status": 401,
    "error": "Unauthorized",
    "details": {
        "message": "Error validating LTIK or IdToken",
        "errorLog": "jwt malformed"
    }
}

Am I missing anything? Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
Cvmcostacommented, Oct 27, 2020

My pleasure! Feel free to contact me if you have any more doubts: cvmcosta@gmail.com

2reactions
jtong99commented, Oct 27, 2020

@Cvmcosta fully supported me to solve this. Again, thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Canvas error at selfhosted bitnami - Instructure Community
Hi I do setup a canvas LMS while when I try to access to the JWK url page it do have some error....
Read more >
H5P not able to launch in self hosted Canvas - Google Groups
I'm not able to connect to H5P as a start to test the LTI 1.3 Integrations in the self hosted environment. What could...
Read more >
Self-hosted, open-source LMS' aren't actually free - Instructure
Self-hosted, open-source LMS' aren't actually free. Instead they come with the costs of running and maintaining the platform. Canvas delivers the best of ......
Read more >
The Challenges of Integrating With Canvas - Edlink
Canvas environments are self-hosted by the district or school. Thus, updates to Canvas installations must be pushed by IT administrators of the ...
Read more >
Self Hosted / Open Source Canvas with Assignments LTI
maybe google doesn't actually support this and its something Instructure built independently. who knows at this point ... I'm not getting ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found