Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-82094

Cannot add LTI external tool activity

XMLWordPrintable

    • 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.

       

       

            Unassigned Unassigned
            tux Colin G
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 minute
                1m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.