Skip to content
Snippets Groups Projects
Commit ba096ad2 authored by Olav Morken's avatar Olav Morken
Browse files

WS-Fed: Update metadata and add WS-Fed metadata to the admin metadata overview.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@638 44740490-163a-0410-bde0-09ae8108e29a
parent 950cd11f
No related branches found
No related tags found
No related merge requests found
...@@ -3,9 +3,8 @@ ...@@ -3,9 +3,8 @@
$metadata = array( $metadata = array(
'urn:federation:pingfederate:localhost' => array( 'urn:federation:pingfederate:localhost' => array(
'host' => 'localhost',
'prp' => 'https://localhost:9031/idp/prp.wsf', 'prp' => 'https://localhost:9031/idp/prp.wsf',
'cert' => '/cert/pingfed-localhost.pem', 'certificate' => 'pingfed-localhost.pem',
), ),
); );
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
$metadata = array( $metadata = array(
'urn:federation:simplesamlphp:localhost' => array( 'urn:federation:simplesamlphp:localhost' => array(
'host' => 'localhost', 'host' => 'localhost',
'realm' => 'urn:federation:simplesamlphp:localhost',
), ),
); );
......
...@@ -114,6 +114,11 @@ ...@@ -114,6 +114,11 @@
if (array_key_exists('metadata.shib13-idp-remote', $this->data)) if (array_key_exists('metadata.shib13-idp-remote', $this->data))
showEntry('Shib 1.3 Identity Provider (Remote)', $this->data['metadata.shib13-idp-remote'], $this->data['baseurlpath']); showEntry('Shib 1.3 Identity Provider (Remote)', $this->data['metadata.shib13-idp-remote'], $this->data['baseurlpath']);
if (array_key_exists('metadata.wsfed-sp-hosted', $this->data))
showEntry('WS-Federation Service Provider (Hosted)', $this->data['metadata.wsfed-sp-hosted'], $this->data['baseurlpath']);
if (array_key_exists('metadata.wsfed-idp-remote', $this->data))
showEntry('WS-Federation Identity Provider (Remote)', $this->data['metadata.wsfed-idp-remote'], $this->data['baseurlpath']);
?> ?>
......
...@@ -119,6 +119,29 @@ try { ...@@ -119,6 +119,29 @@ try {
} }
if ($config->getValue('enable.wsfed-sp') === true) {
$results = array();
$metalist = $metadata->getList('wsfed-sp-hosted');
foreach ($metalist AS $entityid => $mentry) {
$results[$entityid] = SimpleSAML_Utilities::checkAssocArrayRules($mentry,
array('entityid', 'host'),
array()
);
}
$et->data['metadata.wsfed-sp-hosted'] = $results;
$results = array();
$metalist = $metadata->getList('wsfed-idp-remote');
foreach ($metalist AS $entityid => $mentry) {
$results[$entityid] = SimpleSAML_Utilities::checkAssocArrayRules($mentry,
array('entityid', 'prp', 'certificate'),
array()
);
}
$et->data['metadata.wsfed-idp-remote'] = $results;
}
$et->data['header'] = 'Metadata overview'; $et->data['header'] = 'Metadata overview';
$et->data['icon'] = 'bino.png'; $et->data['icon'] = 'bino.png';
......
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