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.

Keep getting "No LTIK or IdToken found."message.

See original GitHub issue

Describe the bug This may be perhaps a problem in the LTIKEY setup. I did the setup as described in the tutorial. I am using localhost moodle and when I launch the demo tool, I get this error. {"status":401,"error":"Unauthorized","details":{"message":"No LTIK or IdToken found.","bodyReceived":{}}}

Expected behavior Expecting it to see “Tool works” or some other success message.

Provider logs Copy of the relevant provider logs.

  1. Run code with debug flag: DEBUG=provider:* npm start.
  2. Copy logs relevant to the issue.

Screenshots If applicable, add screenshots to help explain your problem.

Ltijs version

  • Version 5.3.0

NodeJS version

  • Version 12.6.1 Platform used
  • Moodle (Localhost)

Additional context Under .env file, I am using LTI_KEY=LTIKEY. Do we need to change this something else? Is this where I need to keep the private key?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
GreenOncommented, Oct 12, 2020

That makes sense! Thanks for your work.

0reactions
Cvmcostacommented, Oct 12, 2020

I don’t actually recommend following that tutorial since i’ts quite outdated and based on an older version of Ltijs. Im working on updating it.

Regarding your issue, you should check if the current user is enrolled in the course, as an admin you can always access the course but you’re not necessarily enrolled in it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

not able to receive an ID token from CANVAS
I am trying to get an ID token with OAuth. Below is my code,we try to get the ID token during our onPost...
Read more >
"error : invalid_request" is coming instead of id_token in LTI ...
Hello, we are having the same issue, when Moodle calls our LTI tool it makes the call without id_token set correctly.
Read more >
LTI integration error - MISSING_VALIDATION_COOKIE
Describe the bug We are trying to integrate the custom LTI App Media Resources into CANVAS. It works fine in MOODLE, but throws...
Read more >
LTI 1.3 Troubleshooting and Technical Documentation for ...
After every launch request for adding an LTI link, the launch data will save on the site. If these data are not found...
Read more >
Manage User Access Tokens - TikTok for Developers
Refresh Access Token Using Refresh Token. Although the fetched access_token expires within 24 hours, it can be refreshed without user consent. The developer's ......
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