Closed dac514 closed 6 years ago
Probably something like?
if ( ! in_array( $name, $capabilities, true ) &&
( empty( $constraint['messages'] ) || in_array( $_POST['lti_message_type'], $constraint['messages'], true ) )
) {
Just realized that this block
is not needed because of this check bellow
This commit: https://github.com/Izumi-kun/LTI-Tool-Provider-Library-PHP/commit/12c4c032945d861592e2300b589f2ac4f77d90aa
Broke our LTI2 Registration flow. We now get: Required capability not offered: oauth_consumer_key, resource_link_id, roles, user_id
The latest commit doesn't check against "Array of message types to which the constraint applies (optional, default is all)" (see: \IMSGlobal\LTI\ToolProvider\ToolProvider::setParameterConstraint)
Code snippets.
$_POST['lti_message_type'] === 'ToolProxyRegistrationRequest'