Skip to content
Snippets Groups Projects
Commit ab156a4c authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Generate NameIDFormat in metadata for SPs with a NameIDPolicy set.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3311 44740490-163a-0410-bde0-09ae8108e29a
parent 999ba918
No related branches found
No related tags found
No related merge requests found
...@@ -118,6 +118,11 @@ if ($certInfo !== NULL && array_key_exists('certData', $certInfo)) { ...@@ -118,6 +118,11 @@ if ($certInfo !== NULL && array_key_exists('certData', $certInfo)) {
$certData = NULL; $certData = NULL;
} }
$format = $spconfig->getString('NameIDPolicy', NULL);
if ($format !== NULL) {
$metaArray20['NameIDFormat'] = $format;
}
$name = $spconfig->getLocalizedString('name', NULL); $name = $spconfig->getLocalizedString('name', NULL);
$attributes = $spconfig->getArray('attributes', array()); $attributes = $spconfig->getArray('attributes', array());
......
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