19declare(strict_types=1);
22require_once(
"../vendor/composer/vendor/autoload.php");
37 $url =
$params->retrieve(
'url',
$DIC->refinery()->kindlyTo()->string());
47 $typeId =
$params->retrieve(
'typeid',
$DIC->refinery()->kindlyTo()->listOf(
$DIC->refinery()->kindlyTo()->string()));
60 "sub" =>
$DIC->user()->getId(),
68 if (
$params->has(
'custom_params')) {
69 $customParams = urldecode(
$params->retrieve(
'custom_params',
$DIC->refinery()->kindlyTo()->string()));
70 ilSession::set(
'lti_dynamic_registration_custom_params', $customParams);
74}
catch (Exception $exception) {
static initILIAS()
ilias initialisation
static hasCustomProviderCreationAccess()
static sendResponseError(int $code, string $message, $log=true)
const REG_TOKEN_OP_NEW_REG
static getOpenidConfigUrl()
const REG_TOKEN_OP_UPDATE_REG
static set(string $a_var, $a_val)
Set a value.
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
if($params->has('typeid')) $clientId