ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
shib_login.php
Go to the documentation of this file.
1 <?php
2 
21 
22 require_once("../vendor/composer/vendor/autoload.php");
25 global $DIC;
26 
27 $server = $DIC->http()->request()->getServerParams();
28 
29 if (
30  !isset($server['HTTP_SHIB_APPLICATION_ID'])
31  && !isset($server['Shib-Application-ID'])
32  && !isset($server['REDIRECT_Shib_Application_ID'])
33 ) {
34  $factory = $DIC->ui()->factory();
35  $message_box = $factory->messageBox()->failure("The file shib_login.php must be protected by Shibboleth, otherwise you cannot use Shibboleth authentication.")->withButtons([
36  $factory->button()->standard('Open Documentation', './Services/AuthShibboleth/README.md')
37  ]);
38 
39  $DIC->ui()->mainTemplate()->setContent($DIC->ui()->renderer()->render($message_box));
40  $DIC->ui()->mainTemplate()->printToStdout();
41 } else {
42  // authentication is done here
43  $login = new LoginPerformer(
45  $DIC->ctrl(),
46  $DIC->ui()->mainTemplate(),
47  $DIC->language(),
48  $DIC['ilAuthSession']
49  );
50 
52 }
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...
const CONTEXT_SHIBBOLETH
static initILIAS()
ilias initialisation
global $DIC
Definition: shib_login.php:25
static init(string $a_type)
Init context by type.
$server
Definition: shib_login.php:27