getClaims(), [ LtiLaunchData::LTI_VERSION => 'LTI-1p0', LtiLaunchData::USER_ID => $command->getUser()->getIdentifier(), LtiLaunchData::ROLES => current($command->getRoles()), ] ); $data = ToolConsumer::addSignature( $command->getLaunchUrl(), $command->getLtiProvider()->getKey(), $command->getLtiProvider()->getSecret(), $data ); return new LtiLaunch($command->getLaunchUrl(), $data); } }