ILIAS  release_8 Revision v8.24
ltiregend.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22chdir("../../");
23
24require_once("Services/Init/classes/class.ilInitialisation.php");
25
27$clientId = (ilSession::has('lti_dynamic_registration_client_id')) ? (string) ilSession::get('lti_dynamic_registration_client_id') : '';
29if (empty($clientId)) {
30 $response["providerId"] = 0;
31 $response["error"] = "could not find created client_id";
32} else {
33 try {
35 $response["error"] = "";
36 } catch (\ILIAS\Filesystem\Exception\IOException $e) {
37 $response["providerId"] = 0;
38 $response["error"] = $e->getMessage();
39 }
40}
41header('Content-Type: application/json; charset=utf-8');
42echo json_encode($response, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
static initILIAS()
ilias initialisation
static getProviderIdFromClientId(string $clientId)
static get(string $a_var)
static has($a_var)
$clientId
Definition: ltiregend.php:27
$response
Definition: ltiregend.php:28
Class FlySystemFileAccessTest \Provider\FlySystem @runTestsInSeparateProcesses @preserveGlobalState d...
Class ChatMainBarProvider \MainMenu\Provider.