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

MetadataStorageHandlerXML: Add support for attribute authorities.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1962 44740490-163a-0410-bde0-09ae8108e29a
parent c2d3df7c
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerXML extends SimpleSAML_Metadata_ ...@@ -43,6 +43,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerXML extends SimpleSAML_Metadata_
$IdP1x = array(); $IdP1x = array();
$SP20 = array(); $SP20 = array();
$IdP20 = array(); $IdP20 = array();
$AAD = array();
$entities = SimpleSAML_Metadata_SAMLParser::parseDescriptorsFile($src); $entities = SimpleSAML_Metadata_SAMLParser::parseDescriptorsFile($src);
foreach($entities as $entityId => $entity) { foreach($entities as $entityId => $entity) {
...@@ -67,6 +68,10 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerXML extends SimpleSAML_Metadata_ ...@@ -67,6 +68,10 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerXML extends SimpleSAML_Metadata_
$IdP20[$entityId] = $md; $IdP20[$entityId] = $md;
} }
$md = $entity->getAttributeAuthorities();
if (count($md) > 0) {
$AAD[$entityId] = $md[0];
}
} }
$this->metadata = array( $this->metadata = array(
...@@ -74,6 +79,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerXML extends SimpleSAML_Metadata_ ...@@ -74,6 +79,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerXML extends SimpleSAML_Metadata_
'shib13-idp-remote' => $IdP1x, 'shib13-idp-remote' => $IdP1x,
'saml20-sp-remote' => $SP20, 'saml20-sp-remote' => $SP20,
'saml20-idp-remote' => $IdP20, 'saml20-idp-remote' => $IdP20,
'attributeauthority-remote' => $AAD,
); );
} }
......
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