-
Notifications
You must be signed in to change notification settings - Fork 6k
OpenSaml4LogoutRequestResolver calls setIssueInstant with wrong type #10547
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
Comments
Hi @scho, thanks for reaching out. The newest version of the SAML 2.0 Service Provider uses |
Hi @marcusdacoregio, thanks for your quick answer! But this manual bumping should not be necessary and I believe, there are two issues:
Shouldn't both versions be set to |
Bumping the version to
Edit: This issue is that same as #10539, using |
I mean, you should update to
Not right now, because Spring Security supports OpenSAML3 and OpenSAML4, so we have to support the two versions for now since it would be a breaking change. I've opened #10556 for that. I'm closing this as solved but feel free to continue discussing. |
Hi @marcusdacoregio, using -But shouldn't there be some warning or even a compile time check, that you can not use the Single Logout feature unless you use Open SAML Edit: In case somebody is on Open SAML3, using But my first point stands: |
Description of the bug
When the Saml2 Single Logout feature is used, a logout request is resolved using
OpenSaml4LogoutRequestResolver
.When resolving, the issue instant of the logout request is set by calling:
The parameter of
org.opensaml.saml.saml2.core.RequestAbstractType#setIssueInstant
is of typeorg.joda.time.DateTime
, butInstant.now(this.clock)
returns ajava.time.Instant
.This results in the following error being logged:
To Reproduce
Use Spring Security
5.6.0
and the SAML2 Single Logout feature by sending a POST request to/logout
.Expected behavior
No error should occur.
Sample
Since this is probably a version issue (
org.opensaml:opensaml-saml-api:4.0.0
might not use yoda time?), I omitted proving a sample. If you need one, let me know and I can see what I can do.The text was updated successfully, but these errors were encountered: