ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
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
31 throw new SimpleSAML_Error_NotFound('Not a valid function for cas.php.');
32}
33
34include($validFunctions[$function].".php");
$validFunctions
Definition: cas.php:20
$function
Definition: cas.php:28
An exception for terminatinating execution or to throw for unit testing.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']