Skip to content
Snippets Groups Projects
Commit 389ecbe4 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Improved the metadata overview admin page by configuring which parameters that...

Improved the metadata overview admin page by configuring which parameters that are optional and required in each metadata set 

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@153 44740490-163a-0410-bde0-09ae8108e29a
parent b504193e
No related branches found
No related tags found
No related merge requests found
......@@ -12,36 +12,31 @@ $config = SimpleSAML_Configuration::getInstance();
//$metadata = new SimpleSAML_XML_MetaDataStore($config);
$session = SimpleSAML_Session::getInstance();
try {
$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
$et = new SimpleSAML_XHTML_Template($config, 'admin-metadatalist.php');
if ($config->getValue('enable.saml20-sp') === true) {
$results = array();
/*
$metalist = $metadata->getList('saml20-sp-hosted');
foreach ($metalist AS $entityid => $mentry) {
$results[$entityid] = SimpleSAML_Utilities::checkAssocArrayRules($mentry,
// TODO: UPDATE Required and optional parameter list
array('entityid', 'host', 'spNameQualifier', 'NameIDFormat', 'ForceAuthn'),
array('name', 'description')
array('entityid', 'host', 'NameIDFormat', 'ForceAuthn'),
array()
);
}
$et->data['metadata.saml20-sp-hosted'] = $results;
*/
$results = array();
$metalist = $metadata->getList('saml20-idp-remote');
foreach ($metalist AS $entityid => $mentry) {
$results[$entityid] = SimpleSAML_Utilities::checkAssocArrayRules($mentry,
// TODO: UPDATE Required and optional parameter list
array('entityid', 'host', 'spNameQualifier', 'NameIDFormat', 'ForceAuthn'),
array('name', 'description')
array('entityid', 'SingleSignOnService', 'SingleLogoutService', 'certFingerprint'),
array('name', 'description', 'base64attributes')
);
}
$et->data['metadata.saml20-idp-remote'] = $results;
......@@ -53,19 +48,18 @@ try {
$metalist = $metadata->getList('saml20-idp-hosted');
foreach ($metalist AS $entityid => $mentry) {
$results[$entityid] = SimpleSAML_Utilities::checkAssocArrayRules($mentry,
// TODO: UPDATE Required and optional parameter list
array('entityid', 'host', 'spNameQualifier', 'NameIDFormat', 'ForceAuthn'),
array('name', 'description')
array('entityid', 'host', 'privatekey', 'certificate', 'auth'),
array('requireconsent')
);
}
$et->data['metadata.saml20-idp-hosted'] = $results;
$results = array();
$metalist = $metadata->getList('saml20-sp-remote');
foreach ($metalist AS $entityid => $mentry) {
$results[$entityid] = SimpleSAML_Utilities::checkAssocArrayRules($mentry,
// TODO: UPDATE Required and optional parameter list
array('entityid', 'host', 'spNameQualifier', 'NameIDFormat', 'ForceAuthn'),
array('name', 'description')
array('entityid', 'spNameQualifier', 'AssertionConsumerService', 'SingleLogoutService', 'NameIDFormat'),
array('base64attributes', 'attributemap', 'simplesaml.attributes', 'attributes', 'name', 'description')
);
}
$et->data['metadata.saml20-sp-remote'] = $results;
......@@ -73,11 +67,7 @@ try {
}
$et->data['header'] = 'Metadata overview';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment