Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Commit b320a95e authored by haemmer's avatar haemmer
Browse files

Corrected element name that is used to gather the service name

parent ab897790
......@@ -530,10 +530,10 @@ function getAttributeConsumingServiceNames($RoleDescriptorNode){
$Entity = Array();
$ServiceDescriptions = $RoleDescriptorNode->getElementsByTagNameNS('urn:oasis:names:tc:SAML:2.0:metadata', 'ServiceDescription' );
foreach ($ServiceDescriptions as $ServiceDescription){
$lang = $ServiceDescription->getAttributeNodeNS('http://www.w3.org/XML/1998/namespace', 'lang')->nodeValue;
$Entity[$lang] = $ServiceDescription->nodeValue;
$ServiceNames = $RoleDescriptorNode->getElementsByTagNameNS('urn:oasis:names:tc:SAML:2.0:metadata', 'ServiceName' );
foreach ($ServiceNames as $ServiceName){
$lang = $ServiceName->getAttributeNodeNS('http://www.w3.org/XML/1998/namespace', 'lang')->nodeValue;
$Entity[$lang] = $ServiceName->nodeValue;
}
return $Entity;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment