ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
shib_login.php
Go to the documentation of this file.
1
<?php
2
/******************************************************************************
3
*
4
* This file is part of ILIAS, a powerful learning management system.
5
*
6
* ILIAS is licensed with the GPL-3.0, you should have received a copy
7
* of said license along with the source code.
8
*
9
* If this is not the case or you just want to try ILIAS, you'll find
10
* us at:
11
* https://www.ilias.de
12
* https://github.com/ILIAS-eLearning
13
*
14
*****************************************************************************/
16
require_once(
"libs/composer/vendor/autoload.php"
);
17
ilContext::init
(
ilContext::CONTEXT_SHIBBOLETH
);
18
ilInitialisation::initILIAS
();
19
global
$DIC
;
20
21
$server
=
$DIC
->http()->request()->getServerParams();
22
23
if
(
24
!isset(
$server
[
'HTTP_SHIB_APPLICATION_ID'
])
25
&& !isset(
$server
[
'Shib-Application-ID'
])
26
&& !isset(
$server
[
'REDIRECT_Shib_Application_ID'
])
27
) {
28
$factory
=
$DIC
->ui()->factory();
29
$message_box =
$factory
->messageBox()->failure(
"The file shib_login.php must be protected by Shibboleth, otherwise you cannot use Shibboleth authentication."
)->withButtons([
30
$factory
->button()->standard(
'Open Documentation'
,
'./Services/AuthShibboleth/README.md'
)
31
]);
32
33
$DIC
->ui()->mainTemplate()->setContent(
$DIC
->ui()->renderer()->render($message_box));
34
$DIC
->ui()->mainTemplate()->printToStdout();
35
}
else
{
36
// authentication is done here ->
37
$DIC
->ctrl()->setCmd(
'doShibbolethAuthentication'
);
38
$DIC
->ctrl()->callBaseClass(ilStartUpGUI::class);
39
}
40
ilContext\CONTEXT_SHIBBOLETH
const CONTEXT_SHIBBOLETH
Definition:
class.ilContext.php:45
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1225
$DIC
global $DIC
Definition:
shib_login.php:19
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
$server
$server
Definition:
shib_login.php:21
$factory
$factory
Definition:
metadata.php:75
shib_login.php
Generated on Tue Apr 1 2025 22:02:40 for ILIAS by
1.8.13 (using
Doxyfile
)