19 declare(strict_types=1);
24 require_once(
"Services/Init/classes/class.ilInitialisation.php");
39 $url =
$params->retrieve(
'url',
$DIC->refinery()->kindlyTo()->string());
41 if (empty($_POST[
"url"]) || $_POST[
"url"] !=
$url) {
49 $typeId =
$params->retrieve(
'typeid',
$DIC->refinery()->kindlyTo()->listOf(
$DIC->refinery()->kindlyTo()->string()));
62 "sub" =>
$DIC->user()->getId(),
70 if (
$params->has(
'custom_params')) {
71 $customParams = urldecode(
$params->retrieve(
'custom_params',
$DIC->refinery()->kindlyTo()->string()));
72 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 encode(array $payload, $key, string $alg, string $keyId=null, array $head=null)
Converts and signs a PHP array into a JWT string.
static set(string $a_var, $a_val)
Set a value.