19declare(strict_types=1);
22require_once(
"../vendor/composer/vendor/autoload.php");
29if (strtoupper(
$_SERVER[
'REQUEST_METHOD']) ==
'POST') {
30 $orig =
new ArrayObject(
$_POST);
31 $data = $orig->getArrayCopy();
32} elseif (strtoupper(
$_SERVER[
'REQUEST_METHOD']) ==
'GET') {
33 $orig =
new ArrayObject(
$_GET);
34 $data = $orig->getArrayCopy();
38 if (isset(
$_GET[
'client_id'])) {
39 unset(
$_GET[
'client_id']);
42 header(
$_SERVER[
"SERVER_PROTOCOL"] .
" 405 Method Not Allowed",
true, 405);
53 $DIC->http()->saveResponse(
54 $DIC->http()->response()
58 $DIC->http()->sendResponse();
59 $DIC->http()->close();
60 }
catch (\
ILIAS\HTTP\Response\Sender\ResponseSendingException
$e) {
61 $DIC->http()->close();
85 if (session_status() !== PHP_SESSION_ACTIVE || session_id() ===
'') {
89 $cookieParams = session_get_cookie_params();
90 $secure = (bool) ($cookieParams[
'secure'] ??
false);
95 $cookieName = session_name();
96 $cookieValue = session_id();
97 $path = (string) ($cookieParams[
'path'] ??
'/');
98 $domain = (string) ($cookieParams[
'domain'] ??
'');
99 $httpOnly = (bool) ($cookieParams[
'httponly'] ??
true);
102 rawurlencode($cookieName) .
'=' . rawurlencode($cookieValue),
108 if ($domain !==
'') {
109 $parts[] =
'Domain=' . $domain;
115 return implode(
'; ',
$parts);
120 ->withAddedHeader(
'Location',
$url);
127$DIC->http()->saveResponse(
131 $DIC->http()->sendResponse();
132 $DIC->http()->close();
133}
catch (\
ILIAS\HTTP\Response\Sender\ResponseSendingException
$e) {
134 $DIC->http()->close();
static initILIAS()
ilias initialisation
static set(string $a_var, $a_val)
Set a value.
if(empty($ltiMessageHint)) $mh
buildSameSiteNoneSessionCookieHeader()
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.