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

SimpleSAML_Metadata_SAMLParser: Add the attributes that SAML 1 SPs should receive.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1758 44740490-163a-0410-bde0-09ae8108e29a
parent b15c7631
No related branches found
No related tags found
No related merge requests found
...@@ -485,6 +485,11 @@ class SimpleSAML_Metadata_SAMLParser { ...@@ -485,6 +485,11 @@ class SimpleSAML_Metadata_SAMLParser {
$ret['AssertionConsumerService'] = $acs['Location']; $ret['AssertionConsumerService'] = $acs['Location'];
} }
/* Add the list of attributes the SP should receive. */
if (array_key_exists('attributes', $spd)) {
$ret['attributes'] = $spd['attributes'];
}
/* Add certificate data. Only the first valid certificate will be added. */ /* Add certificate data. Only the first valid certificate will be added. */
foreach($spd['keys'] as $key) { foreach($spd['keys'] as $key) {
if($key['type'] !== 'X509Certificate') { if($key['type'] !== 'X509Certificate') {
...@@ -636,6 +641,7 @@ class SimpleSAML_Metadata_SAMLParser { ...@@ -636,6 +641,7 @@ class SimpleSAML_Metadata_SAMLParser {
$ret['NameIDFormat'] = $spd['nameIDFormats'][0]; $ret['NameIDFormat'] = $spd['nameIDFormats'][0];
} }
/* Add the list of attributes the SP should receive. */
if (array_key_exists('attributes', $spd)) { if (array_key_exists('attributes', $spd)) {
$ret['attributes'] = $spd['attributes']; $ret['attributes'] = $spd['attributes'];
} }
......
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