ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
shib_login.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
12 include_once './Services/Context/classes/class.ilContext.php';
14 
15 require_once("Services/Init/classes/class.ilInitialisation.php");
17 
18 if (!$_SERVER['HTTP_SHIB_APPLICATION_ID'] && !$_SERVER['Shib-Application-ID'] && !$_SERVER['REDIRECT_Shib_Application_ID']) {
19  $message = "This file must be protected by Shibboleth, otherwise you cannot use Shibboleth authentication! Consult the <a href=\"Services/AuthShibboleth/README.SHIBBOLETH.txt\">documentation</a> on how to configure Shibboleth authentication properly.";
20  $ilias->raiseError($message, $ilias->error_obj->WARNING);
21 }
22 
23 // authentication is done here ->
24 $ilCtrl->initBaseClass("ilStartUpGUI");
25 $ilCtrl->setCmd('doShibbolethAuthentication');
26 $ilCtrl->setTargetScript("ilias.php");
27 $ilCtrl->callBaseClass();
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
const CONTEXT_SHIBBOLETH
global $ilCtrl
Definition: ilias.php:18
static initILIAS()
ilias initialisation
catch(Exception $e) $message
static init($a_type)
Init context by type.