ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
authorize_403.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 $state = SimpleSAML_Auth_State::loadState($_REQUEST['StateId'], 'authorize:Authorize');
12 
14 $t = new SimpleSAML_XHTML_Template($globalConfig, 'authorize:authorize_403.php');
15 if (isset($state['Source']['auth'])) {
16  $t->data['LogoutURL'] = SimpleSAML\Module::getModuleURL('core/authenticate.php', array('as' => $state['Source']['auth']))."&logout";
17 }
18 header('HTTP/1.0 403 Forbidden');
19 $t->show();
if(!array_key_exists('StateId', $_REQUEST)) $state
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:303
Add a drawing to the header
Definition: 04printing.php:69
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
Definition: State.php:259
Create styles array
The data for the language used.
$globalConfig
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.