11if (array_key_exists(
'targetService',
$_GET)) {
12 $targetService =
$_GET[
'targetService'];
15 throw new Exception(
'Required URL query parameter [targetService] not provided. (CAS Server)');
23 throw new Exception(
'Service parameter provided to CAS server is not listed as a legal service: [service] = ' .
$service);
28if ($ticket[
'validbefore'] > time()) {
29 $pt = str_replace(
'_',
'PT-',
SimpleSAML\Utils\Random::generateID() );
31 'service' => $targetService,
32 'forceAuthn' =>
false,
33 'attributes' => $ticket[
'attributes'],
34 'proxies' => $ticket[
'proxies'],
35 'validbefore' => time() + 5)
39<cas:serviceResponse xmlns:cas=
'http://www.yale.edu/tp/cas'>
41 <cas:proxyTicket>$pt</cas:proxyTicket>
47<cas:serviceResponse xmlns:cas=
'http://www.yale.edu/tp/cas'>
48 <cas:proxyFailure code=
"INVALID_REQUEST">
49 Proxygranting ticket to old - ssp casserver only supports shortlived (30 secs) pgts.
An exception for terminatinating execution or to throw for unit testing.
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
Attribute-related utility methods.
checkServiceURL($service, array $legal_service_urls)
storeTicket($ticket, $path, $value)
retrieveTicket($ticket, $path, $unlink=true)