ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
show_metadata.php
Go to the documentation of this file.
1 <?php
2 
3 // load configuration
6 
8 
9 if (!array_key_exists('entityid', $_REQUEST)) {
10  throw new Exception('required parameter [entityid] missing');
11 }
12 if (!array_key_exists('set', $_REQUEST)) {
13  throw new Exception('required parameter [set] missing');
14 }
15 if (!in_array(
16  $_REQUEST['set'],
17  array('saml20-idp-remote', 'saml20-sp-remote', 'shib13-idp-remote', 'shib13-sp-remote'),
18  true
19 )) {
20  throw new Exception('Invalid set');
21 }
22 
24 
25 $m = $metadata->getMetadata($_REQUEST['entityid'], $_REQUEST['set']);
26 
27 $t = new SimpleSAML_XHTML_Template($config, 'core:show_metadata.tpl.php');
28 $t->data['clipboard.js'] = true;
29 $t->data['pageid'] = 'show_metadata';
30 $t->data['header'] = 'SimpleSAMLphp Show Metadata';
31 $t->data['backlink'] = SimpleSAML\Module::getModuleURL('core/frontpage_federation.php');
32 $t->data['m'] = $m;
33 
34 $t->show();
static getMetadataHandler()
This function retrieves the current instance of the metadata handler.
static requireAdmin()
Require admin access to the current page.
Definition: Auth.php:60
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:303
if(!array_key_exists('entityid', $_REQUEST)) if(!array_key_exists('set', $_REQUEST)) if(!in_array($_REQUEST['set'], array('saml20-idp-remote', 'saml20-sp-remote', 'shib13-idp-remote', 'shib13-sp-remote'), true)) $metadata
Create styles array
The data for the language used.
$session
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:243
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
$config