Jake Dallimore 0dcb53ec19 MDL-74303 lib: pull upstream lib/lti1p3 changes to support JWKS parsing
This pulls in the latest changes from the moodle-fixes branch of
snake/lti-1-3-php-library. This specific change is required so JWKS
key parsing works when launching from platforms which omit the 'alg'
property in their JWKs.
2022-04-04 14:43:22 +08:00
..

LTI 1.3 Tool Library

A library used for building IMS-certified LTI 1.3 tool providers in PHP.

This library is a fork of the packbackbooks/lti-1-3-php-library, patched specifically for use in Moodle.

It is currently based on version 5.1.0 of the packbackbooks/lti-1-3-php-library library.

The following changes are included so that the library may be used with Moodle:

  • Replace the phpseclib dependency with openssl equivalent call in public key generation code.
  • Replace the Guzzle dependency with generic HTTP client interfaces for client, response, exception.
  • Small fix to http_build_query() calls, which now explicitly include the '&' arg separator param, for compatibility with applications that override PHP's arg_separator.output value via an ini_set() call, like Moodle does.
  • Upgrade the firebase/php-jwt requirement from ^5.2 to ^6.0, to match Moodle's shipped version of the lib. This change can be dropped when this upstream issue is merged.

Please see the original README for more information about the upstream library.