20 session_cache_limiter(
'nocache');
26 if (!array_key_exists(
'StateId', $_REQUEST)) {
28 'Missing required StateId query parameter.' 32 $id = $_REQUEST[
'StateId'];
35 if (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';
45 if (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);
113 if (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;
120 if ($privacypolicy !==
false) {
121 $privacypolicy = str_replace(
123 urlencode($spentityid),
127 $t->data[
'sppp'] = $privacypolicy;
130 switch (
$state[
'consent:focus']) {
132 $t->data[
'autofocus'] =
'yesbutton';
135 $t->data[
'autofocus'] =
'nobutton';
142 if (array_key_exists(
'consent:store',
$state)) {
143 $t->data[
'usestorage'] =
true;
145 $t->data[
'usestorage'] =
false;
148 if (array_key_exists(
'consent:hiddenAttributes',
$state)) {
149 $t->data[
'hiddenAttributes'] =
$state[
'consent:hiddenAttributes'];
151 $t->data[
'hiddenAttributes'] =
array();
if(!isset($state['consent:showNoConsentAboutService'])|| $state['consent:showNoConsentAboutService']) $statsInfo
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
static resumeProcessing($state)
Continues processing of the state.
if(! $oauthconfig->getBoolean('getUserInfo.enable', FALSE)) $store
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
foreach($attributes AS $attrkey=> $attrval) $para
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
if(array_key_exists('yes', $_REQUEST)) $attributes
Create styles array
The data for the language used.
if(!array_key_exists('StateId', $_REQUEST)) $id
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static log($event, array $data=array())
Notify about an event.