ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
cardinality_error.php
Go to the documentation of this file.
1<?php
8if (!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'];
21if (isset($state['Source']['auth'])) {
22 $t->data['LogoutURL'] = \SimpleSAML\Module::getModuleURL('core/authenticate.php', array('as' => $state['Source']['auth']))."&logout";
23}
24header('HTTP/1.0 403 Forbidden');
25$t->show();
if(!array_key_exists('StateId', $_REQUEST)) $id
$globalConfig
An exception for terminatinating execution or to throw for unit testing.
static stats($string)
Definition: Logger.php:222
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:220
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
Definition: State.php:259
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:241