ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
show_metadata.php
Go to the documentation of this file.
1<?php
2
3// load configuration
6
8
9if (!array_key_exists('entityid', $_REQUEST)) {
10 throw new Exception('required parameter [entityid] missing');
11}
12if (!array_key_exists('set', $_REQUEST)) {
13 throw new Exception('required parameter [set] missing');
14}
15if (!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();
An exception for terminatinating execution or to throw for unit testing.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:220
static requireAdmin()
Require admin access to the current page.
Definition: Auth.php:60
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static getMetadataHandler()
This function retrieves the current instance of the metadata handler.
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:241
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
$config
$session