19 declare(strict_types=1);
37 $url =
$params->retrieve(
'url',
$DIC->refinery()->kindlyTo()->string());
43 $typeId =
$params->retrieve(
'typeid',
$DIC->refinery()->kindlyTo()->listOf(
$DIC->refinery()->kindlyTo()->string()));
56 "sub" =>
$DIC->user()->getId(),
64 if (
$params->has(
'custom_params')) {
65 $customParams = urldecode(
$params->retrieve(
'custom_params',
$DIC->refinery()->kindlyTo()->string()));
66 ilSession::set(
'lti_dynamic_registration_custom_params', $customParams);
static sendResponseError(int $code, string $message, $log=true)
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
static initILIAS()
ilias initialisation
const REG_TOKEN_OP_NEW_REG
static getOpenidConfigUrl()
static hasCustomProviderCreationAccess()
if($params->has('typeid')) $clientId
const REG_TOKEN_OP_UPDATE_REG
static set(string $a_var, $a_val)
Set a value.