Skip to content

Commit c823a59

Browse files
author
Martin Veselý
committed
Fixing issue Sustainsys#1049 - IDPSSODescriptor element is not deserialized when after RoleDescriptor element of type ApplicationServiceType or SecurityTokenServiceType
1 parent 6a155ef commit c823a59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sustainsys.Saml2/Metadata/MetadataSerializer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,13 +2010,13 @@ protected virtual EntityDescriptor ReadEntityDescriptor(XmlReader reader, Securi
20102010
{
20112011
if (String.Equals(extensionType, "ApplicationServiceType", StringComparison.Ordinal))
20122012
{
2013-
descriptor.RoleDescriptors.Add(
2014-
ReadApplicationServiceDescriptor(reader));
2013+
roleDescriptor = ReadApplicationServiceDescriptor(reader);
2014+
descriptor.RoleDescriptors.Add(roleDescriptor);
20152015
}
20162016
else if (String.Equals(extensionType, "SecurityTokenServiceType", StringComparison.Ordinal))
20172017
{
2018-
descriptor.RoleDescriptors.Add(
2019-
ReadSecurityTokenServiceDescriptor(reader));
2018+
roleDescriptor = ReadSecurityTokenServiceDescriptor(reader);
2019+
descriptor.RoleDescriptors.Add(roleDescriptor);
20202020
}
20212021
}
20222022
if (roleDescriptor == null)

0 commit comments

Comments
 (0)