ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
shib_login.php
Go to the documentation of this file.
1<?php
2
19require_once("../vendor/composer/vendor/autoload.php");
20require_once("../artifacts/bootstrap_default.php");
21
23
24entry_point("ILIAS Legacy Initialisation Adapter");
25
26global $DIC;
27
28$server = $DIC->http()->request()->getServerParams();
29
30if (
31 !isset($server['HTTP_SHIB_APPLICATION_ID'])
32 && !isset($server['Shib-Application-ID'])
33 && !isset($server['REDIRECT_Shib_Application_ID'])
34) {
35 $factory = $DIC->ui()->factory();
36 $message_box = $factory->messageBox()->failure("The file shib_login.php must be protected by Shibboleth, otherwise you cannot use Shibboleth authentication.")->withButtons([
37 $factory->button()->standard('Open Documentation', './Services/AuthShibboleth/README.md')
38 ]);
39
40 $DIC->ui()->mainTemplate()->setContent($DIC->ui()->renderer()->render($message_box));
41 $DIC->ui()->mainTemplate()->printToStdout();
42} else {
43 // authentication is done here
44 $login = new LoginPerformer(
46 $DIC->ctrl(),
47 $DIC->ui()->mainTemplate(),
48 $DIC->language(),
49 $DIC['ilAuthSession']
50 );
51
52 $login->doShibbolethAuthentication();
53}
static getLogger(string $a_component_id)
Get component logger.
entry_point(string $name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: result1.php:21
global $DIC
Definition: shib_login.php:26
$server
Definition: shib_login.php:28