Closed mazorAnn closed 1 year ago
same problem on iPhone - both Chrome & Safari
I face the same issue with Firefox
Hello @mazorAnn and @Soumyaranjanpal this issue is caused by the third party cookie policies blocking part of the LTI launch flow, the state validation. There are two ways of working around this at the moment:
devMode: true
in the setup options. All this does is disable state cookie validation. That being said, this technically means your app is not fully LTI compliant.This is a known issue with the current LTI protocol and alternatives to using a state cookie are being discussed as more and more browsers are blocking third party cookies by default.
I am closing this as it is not a bug, but please fell free to ask more questions about it here.
Describe the bug I developed an external tool - using:
I used
ltijs
for LTI 1.3 implementation over:everything works great on Chrome and Firefox, only Safari does not work this is the error when I'm trying to LAUNCH an assignment:
{"status":401,"error":"Unauthorized","details":{"description":"Error validating ltik or IdToken","message":"MISSING_VALIDATION_COOKIE"}}
Expected behavior
the launch in safari is supposed to work the same as chrome/Firefox
Provider logs
Screenshots
Left - Safari | Right - Crhome
https://user-images.githubusercontent.com/89394418/224063578-b8b37f43-8fe5-44ce-96db-48a43b3bf12c.mov
Ltijs version
NodeJS version
Platform used
Additional context this is my Setup Code in the
lti-index.js
file of the firebase Cloud functions:this is my conf file:
Sorry for labeling it as a bug by mistake