I am attempting to build a simple LTI test tool using this library and the IMS test tool that leveraged the original lti-php lib, however am running into some issues with generating the redirect url on LTI launch.
My current launch implementation, shown below, correct parses a launch link and redirects to the target fusionauth instance, however it produces an invalid OAuth request, with the client_id key and value duplicated, and two different redirect_uri.
The $authParams object in getRedirectUrl does not contain the duplicate keys, so it must follow that they are somehow making their way into the URL in the buildUrlWithQueryParams()function.
Login Implementation
$authLoginUrl = LtiOidcLogin::new(new Lti13Database(), new Lti13Cache(), new Lti13Cookie())
->getRedirectUrl("http://localhost:9001/game.php", $_POST);
header('Location: ' . $authLoginUrl, true, 302);
exit();
I am attempting to build a simple LTI test tool using this library and the IMS test tool that leveraged the original lti-php lib, however am running into some issues with generating the redirect url on LTI launch.
My current launch implementation, shown below, correct parses a launch link and redirects to the target fusionauth instance, however it produces an invalid OAuth request, with the
client_id
key and value duplicated, and two differentredirect_uri
.The
$authParams
object ingetRedirectUrl
does not contain the duplicate keys, so it must follow that they are somehow making their way into the URL in thebuildUrlWithQueryParams()
function.Login Implementation
**Generated Redirect URL:***
For additional context, our fork of the LTI tool can be found here.