get('enabled') !== 'true') { throw new Exception(get_lang('Forbidden')); } /** @var ImsLtiTool $tool */ $tool = $em->find('ChamiloPluginBundle:ImsLti\ImsLtiTool', $request->query->get('id')); if (!$tool) { throw new Exception($plugin->get_lang('NoTool')); } $html = '
' .'
'.$plugin->get_lang('PlatformId').'
' .'
'.ImsLtiPlugin::getIssuerUrl().'
' .'
' .'
' .'
'.$plugin->get_lang('DeploymentId').'
' .'
'.($tool->getParent() ? $tool->getParent()->getId() : $tool->getId()).'
' .'
' .'
' .'
'.$plugin->get_lang('ClientId').'
' .'
'.$tool->getClientId().'
' .'
' .'
' .'
'.$plugin->get_lang('AuthUrl').'
' .'
'.$webPluginPath.'auth.php
' .'
' .'
' .'
'.$plugin->get_lang('TokenUrl').'
' .'
'.$webPluginPath.'token.php
' .'
' .'
' .'
'.$plugin->get_lang('KeySetUrl').'
' .'
'.$webPluginPath.'jwks.php
' .'
'; $response->setContent($html); } catch (Exception $exception) { $response->setContent( Display::return_message($exception->getMessage(), 'error') ); } $response->send();