Open onebonsai opened 2 months ago
I'm guessing you're using Moodle, which I'm not real familiar with. Have you seen https://moodle.org/mod/forum/discuss.php?d=446771#p1795488 ?
Thanks for that post. Not sure though what they mean with:
I just figured it out, we had a silly typo in our signature method: RSA256. This should be, RS256 of course.
Where do I set this signature method? I might have a similar issue?
All the settings that you can change are in config/lti.php
.
A pity, signature_method is
'signature_method' => env('LTI13_SIGNATURE_METHOD', 'RS256'),
Fyi, I use a similar approach to https://github.com/longhornopen/lti-example-app/blob/main/web/app/Http/Controllers/LtiController.php to get the resourceLink and userResult.
Sadly, that does not seem to send the correct token through.
As you mention, this might be a question for the Moodle team. I will post one there as well.
Thanks!
Hmm. The only info I've been able to find is the privacy-settings thing from that moodle.org link I posted. If you figure it out, post the solution here for others, please?
Hi,
I am trying to send back the scores of my tool to the platform. Using ltiMessage, I store the ltiResourceLinkId and ltiUserId in session. I then retrieve that in the scoring function at the end of the use of my tool.
However, the doOutcomesService function returns false, due to doScoreService returning false (ResourceLink.php). This is because
$http = $scoreService->getHttpMessage();
returns false with this error message:
{"ok":false,"request":null,"requestHeaders":[],"response":null,"responseHeaders":[],"relativeLinks":[],"status":0,"error":"Unable to obtain an access token for scope: https:\/\/purl.imsglobal.org\/spec\/lti-ags\/scope\/score"}
I understood that this token was automagically retrieved using the jwks funtionality. Additionally, I have set the required_scopes in the config/lti.php file to match the above required scope (score).
I do not know what I am missing?
Thanks!