ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
shib_login.php
Go to the documentation of this file.
1 <?php
2 
19 require_once("../vendor/composer/vendor/autoload.php");
20 require_once("../artifacts/bootstrap_default.php");
21 
23 
24 entry_point("ILIAS Legacy Initialisation Adapter");
25 
26 global $DIC;
27 
28 $server = $DIC->http()->request()->getServerParams();
29 
30 if (
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 
53 }
static getLogger(string $a_component_id)
Get component logger.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26
$server
Definition: shib_login.php:28
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