-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.4
-
MOODLE_404_STABLE
When we try to add the activity, we see this error:
Exception - Cannot handle token with iat prior to 2024-06-05T13:40:51+1000
More information about this error
Debug info:
Error code: generalexceptionmessage×Dismiss this notification
Stack trace:
- line 167 of /lib/php-jwt/src/JWT.php: Firebase\JWT\BeforeValidException thrown
- line 1339 of /mod/lti/locallib.php: call to Firebase\JWT\JWT::decode()
- line 1393 of /mod/lti/locallib.php: call to lti_verify_with_keyset()
- line 3446 of /mod/lti/locallib.php: call to lti_verify_jwt_signature()
- line 57 of /mod/lti/contentitem_return.php: call to lti_convert_from_jwt()
steps to reproduce
- add new LTI activity
- on the settings screen click "select content"
- select the course you wish to add
- click the "add content" button
Setting leeway value to 60 seconds in lib/php-jwt/src/JWT.php and this error no longer appears.
I think it should handle time issues a bit more gracefully.