You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method get_public_key returns openssl_pkey_get_details(JWK::parseKey($key)), but we encountered an error saying openssl_pkey_get_details() expects parameter 1 to be resource, object given.
After investigation, we discovered that firebase has changed the return type for JWK methods in January 2022.
The lti-1-3-php-library library doesn't require firebase/php-jwt but fproject/php-jwt that doesn't show these changes.
The problems start when the project using the lti-1-3-php-library library requires the firebase/php-jwt library as both of firebase/php-jwt and fproject/php-jwt libraries use the same namespace.
The text was updated successfully, but these errors were encountered:
Hi Thomas there has been 2 PR's fixing both this and other errors that arise when using it together with the official firebase/php-jwt aswell as other Laravel issues. Unfortunately IMS seems to have died during the pandemic or something and there hasn't been any response on this in over 2 years now. If only your own code depends on php-jwt you could try using the outdated library instead but the parameter types are a little different. There is also an unofficial fork that contains all these changes: composer require packbackbooks/lti-1p3-tool
The method
get_public_key
returnsopenssl_pkey_get_details(JWK::parseKey($key))
, but we encountered an error sayingopenssl_pkey_get_details() expects parameter 1 to be resource, object given
.After investigation, we discovered that firebase has changed the return type for
JWK
methods in January 2022.The lti-1-3-php-library library doesn't require
firebase/php-jwt
butfproject/php-jwt
that doesn't show these changes.The problems start when the project using the lti-1-3-php-library library requires the
firebase/php-jwt
library as both offirebase/php-jwt
andfproject/php-jwt
libraries use the same namespace.The text was updated successfully, but these errors were encountered: