ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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->callBaseClass();
const CONTEXT_SHIBBOLETH
global $ilCtrl
Definition: ilias.php:18
static initILIAS()
ilias initialisation
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
static init($a_type)
Init context by type.
$message
Definition: xapiexit.php:14