ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
cas.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* Frontend for login.php, proxy.php, validate.php and serviceValidate.php. It allows them to be called
5
* as cas.php/login, cas.php/validate and cas.php/serviceValidate and is meant for clients
6
* like phpCAS which expects one configured prefix which it appends login, validate and
7
* serviceValidate to.
8
*
9
* This version supports CAS proxying. As SSP controls the user session (TGT in CAS parlance)
10
* and the CASServer as a backend/proxy server is not aware of termination of the session the Proxy-
11
* Granting-Tickets (PGT) issued have a very short ttl - pt. 60 secs.
12
*
13
* ServiceTickets (SP) and ProxyTickets (PT) now have a 5 secs ttl.
14
*
15
* Proxyed services (targetService) shall be present in the legal_service_urls config.
16
*
17
*/
18
19
20
$validFunctions
=
array
(
21
'login'
=>
'login'
,
22
'proxy'
=>
'proxy'
,
23
'validate'
=>
'serviceValidate'
,
24
'serviceValidate'
=>
'serviceValidate'
,
25
'proxyValidate'
=>
'serviceValidate'
26
);
27
28
$function
= substr(
$_SERVER
[
'PATH_INFO'
], 1);
29
30
if
(!isset(
$validFunctions
[
$function
])) {
31
throw
new
SimpleSAML_Error_NotFound
(
'Not a valid function for cas.php.'
);
32
}
33
34
include(
$validFunctions
[$function].
".php"
);
$_SERVER
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Definition:
tcpdf_autoconfig.php:54
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
SimpleSAML_Error_NotFound
Definition:
NotFound.php:12
$function
$function
Definition:
cas.php:28
$validFunctions
$validFunctions
Definition:
cas.php:20
libs
composer
vendor
simplesamlphp
simplesamlphp
modules
casserver
www
cas.php
Generated on Sat Mar 1 2025 19:01:10 for ILIAS by
1.8.13 (using
Doxyfile
)