-
Notifications
You must be signed in to change notification settings - Fork 399
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
fixes #322: allow SAML responses without Conditions #323
base: master
Are you sure you want to change the base?
fixes #322: allow SAML responses without Conditions #323
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
wantConditionsPresent
and 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.