ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
cardinality_error.php
Go to the documentation of this file.
1 <?php
8 if (!array_key_exists('StateId', $_REQUEST)) {
9  throw new \SimpleSAML_Error_BadRequest('Missing required StateId query parameter.');
10 }
11 $id = $_REQUEST['StateId'];
14 
15 \SimpleSAML\Logger::stats('core:cardinality:error '.$state['Destination']['entityid'].' '.$state['saml:sp:IdP'].
16  ' '.implode(',', array_keys($state['core:cardinality:errorAttributes'])));
17 
19 $t = new \SimpleSAML_XHTML_Template($globalConfig, 'core:cardinality_error.tpl.php');
20 $t->data['cardinalityErrorAttributes'] = $state['core:cardinality:errorAttributes'];
21 if (isset($state['Source']['auth'])) {
22  $t->data['LogoutURL'] = \SimpleSAML\Module::getModuleURL('core/authenticate.php', array('as' => $state['Source']['auth']))."&logout";
23 }
24 header('HTTP/1.0 403 Forbidden');
25 $t->show();
$globalConfig
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:220
static stats($string)
Definition: Logger.php:222
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
Definition: State.php:259
if(!array_key_exists('StateId', $_REQUEST)) $id
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:241
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.