11 if (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);
28 if ($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>
43 </cas:serviceResponse>
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.
51 </cas:serviceResponse>
checkServiceURL($service, array $legal_service_urls)
retrieveTicket($ticket, $path, $unlink=true)
Attribute-related utility methods.
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
Create styles array
The data for the language used.
storeTicket($ticket, $path, $value)
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.