KEYCLOAK-15540 correct SAMLAttributeConsumingServiceParser

This commit is contained in:
Konstantinos Georgilakis 2020-09-14 12:06:32 +03:00 committed by Hynek Mlnařík
parent 4123b7a91e
commit f4f58ab707

View file

@ -47,7 +47,10 @@ public class SAMLAttributeConsumingServiceParser extends AbstractStaxSamlMetadat
break;
case SERVICE_DESCRIPTION:
target.addServiceDescription(new LocalizedNameType(StaxParserUtil.getAttributeValue(elementDetail, ATTR_LANG)));
LocalizedNameType serviceDescription = new LocalizedNameType(StaxParserUtil.getAttributeValue(elementDetail, ATTR_LANG));
StaxParserUtil.advance(xmlEventReader);
serviceDescription.setValue(StaxParserUtil.getElementText(xmlEventReader));
target.addServiceDescription(serviceDescription);
break;
case REQUESTED_ATTRIBUTE: