Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not add whitespaces in XML signature of /saml/metadata #3222

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

strehle
Copy link
Member

@strehle strehle commented Jan 7, 2025

Add property, e.g. https://stackoverflow.com/questions/4728300/how-to-produce-xml-signature-with-no-whitespaces-and-line-breaks-in-java

Signature value ONLY of endpoint /saml/metadata contain the line breaks, other signatures dont show such chars

@strehle strehle linked an issue Jan 7, 2025 that may be closed by this pull request
Only in IT via string output the carriage return is visible
In unit testing do not see them
@strehle strehle requested a review from a team January 7, 2025 10:08
@strehle strehle changed the title Do not add whitespaces in XML signature Do not add whitespaces in XML signature of /saml/metadata Jan 8, 2025
@strehle strehle requested a review from Kehrlann January 8, 2025 11:16
@strehle
Copy link
Member Author

strehle commented Jan 8, 2025

@Kehrlann I am wondering why the line breaks ( ) only in metadata and therefore do you know how spring-security creates the signature, so that there are no extra line breaks.

@Kehrlann
Copy link
Contributor

Kehrlann commented Jan 8, 2025

@strehle I don't have the specifics in mind but this is probably generated by OpenSAML, not Spring Security itself.

@strehle strehle merged commit 21de462 into develop Jan 14, 2025
22 checks passed
@strehle strehle deleted the fix/signatureLineBreak branch January 14, 2025 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Review SAML metadata changes
2 participants