ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
12include_once './Services/Context/classes/class.ilContext.php';
14
15require_once("Services/Init/classes/class.ilInitialisation.php");
17
18if (!$_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();
An exception for terminatinating execution or to throw for unit testing.
const CONTEXT_SHIBBOLETH
static init($a_type)
Init context by type.
static initILIAS()
ilias initialisation
global $ilCtrl
Definition: ilias.php:18
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
$message
Definition: xapiexit.php:14