fixes #322: allow SAML responses without Conditions#323
fixes #322: allow SAML responses without Conditions#323ThePetrov wants to merge 1 commit intoSAML-Toolkits:masterfrom
Conversation
- the conditions element is optional according to the spec - require Conditions element to be present by default - added new configuration option to allow lack of Conditions
|
Please note, however, that the SAML 2.0 specification says:
So, since the What I would argue, instead, is why java-saml requires just one
|
|
That's very insightful, thanks for the reply @mauromol ! You're correct, I wasn't aware that the Conditions were enforced in the profiles part of the spec.
|
|
@pitbulk Do you think this is a change worth pursuing? |
You are right: it's not the I'm going to open an issue for this. |
ab7e4d7 to
3c79c8c
Compare
The Conditions element is technically optional, so for maximum compatibility I don't think it should be required by the library. On the other hand I can't deny the security benefits brought by requiring that element to exist. To get the best of both worlds I've added a new configuration setting
wantConditionsPresentand retained the default behavior of requiring the Conditions element for a response to be considered valid. If someone actually needs to validate responses without the Conditions element they can set that property to false.