Skip to content

Commit

Permalink
tweak XML config for SAML2 rendering elements [skip ci]
Browse files Browse the repository at this point in the history
Ensure line-breaks are ignored.
  • Loading branch information
mmoayyed authored Oct 3, 2024
1 parent cc3ef7b commit f17cc8b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public class OpenSamlConfigurationPropertiesSource implements ConfigurationPrope
*/
public static final String CONFIG_APACHE_XML_IGNORE_LINEBREAKS = "org.apache.xml.security.ignoreLineBreaks";

static {
System.setProperty(CONFIG_STRICT_MODE, "true");
System.setProperty(CONFIG_SUN_XML_IGNORE_LINEBREAKS, "true");
System.setProperty(CONFIG_APACHE_XML_IGNORE_LINEBREAKS, "true");
}

@Override
public ConfigurationProperties getProperties() {
val properties = new Properties();
Expand Down

0 comments on commit f17cc8b

Please sign in to comment.