20session_cache_limiter(
'nocache');
26if (!array_key_exists(
'StateId', $_REQUEST)) {
28 'Missing required StateId query parameter.'
32$id = $_REQUEST[
'StateId'];
35if (array_key_exists(
'core:SP',
$state)) {
36 $spentityid =
$state[
'core:SP'];
37}
else if (array_key_exists(
'saml:sp:State',
$state)) {
38 $spentityid =
$state[
'saml:sp:State'][
'core:SP'];
40 $spentityid =
'UNKNOWN';
45if (array_key_exists(
'yes', $_REQUEST)) {
46 if (array_key_exists(
'saveconsent', $_REQUEST)) {
53 'remember' => array_key_exists(
'saveconsent', $_REQUEST),
55 if (isset(
$state[
'Destination'][
'entityid'])) {
60 if ( array_key_exists(
'consent:store',
$state)
61 && array_key_exists(
'saveconsent', $_REQUEST)
62 && $_REQUEST[
'saveconsent'] ===
'1'
66 $userId =
$state[
'consent:store.userId'];
67 $targetedId =
$state[
'consent:store.destination'];
68 $attributeSet =
$state[
'consent:store.attributeSet'];
71 'Consent - saveConsent() : [' . $userId .
'|' .
72 $targetedId .
'|' . $attributeSet .
']'
75 $store->saveConsent($userId, $targetedId, $attributeSet);
76 }
catch (Exception $e) {
106$t->data[
'yesData'] = array(
'StateId' =>
$id);
108$t->data[
'noData'] = array(
'StateId' =>
$id);
113if (array_key_exists(
'privacypolicy',
$state[
'Destination'])) {
114 $privacypolicy =
$state[
'Destination'][
'privacypolicy'];
115} elseif (array_key_exists(
'privacypolicy',
$state[
'Source'])) {
116 $privacypolicy =
$state[
'Source'][
'privacypolicy'];
118 $privacypolicy =
false;
120if ($privacypolicy !==
false) {
121 $privacypolicy = str_replace(
123 urlencode($spentityid),
127$t->data[
'sppp'] = $privacypolicy;
130switch (
$state[
'consent:focus']) {
132 $t->data[
'autofocus'] =
'yesbutton';
135 $t->data[
'autofocus'] =
'nobutton';
142if (array_key_exists(
'consent:store',
$state)) {
143 $t->data[
'usestorage'] =
true;
145 $t->data[
'usestorage'] =
false;
148if (array_key_exists(
'consent:hiddenAttributes',
$state)) {
149 $t->data[
'hiddenAttributes'] =
$state[
'consent:hiddenAttributes'];
151 $t->data[
'hiddenAttributes'] = array();
An exception for terminatinating execution or to throw for unit testing.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
static resumeProcessing($state)
Continues processing of the state.
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static log($event, array $data=array())
Notify about an event.
if(! $oauthconfig->getBoolean('getUserInfo.enable', FALSE)) $store
if(!array_key_exists('StateId', $_REQUEST)) $id
foreach($attributes AS $attrkey=> $attrval) $para
if(array_key_exists('yes', $_REQUEST)) $attributes
if(!isset($state['consent:showNoConsentAboutService'])|| $state['consent:showNoConsentAboutService']) $statsInfo