-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Support sending SAML 2.0 LogoutRequest to the IdP (Single Logout) #8731
Comments
Is there any alternative currently available for this? Right now it seems like given spring-security-saml is out of support, the upgrade path would be to implement your own copy of |
@fpagliar, I don't believe there are any existing alternatives. But, since it sounds like you might be producing a solution anyway, I wonder if you'd be interested in contributing it back? I'm thinking that it would make sense to create an implementation of |
I'm looking at this and will be glad to contribute when possible. Might not get a full-fledged generic solution but it will at least be a good first approach to iterate on. @jzheaux I'm wondering a bit on refactoring from the current structure. Looking at |
Hey there! We are waiting for this issue to be implemented. Just wanted to check in real quick.. Is there any progress yet? Thanks a lot. |
@fpagliar |
Waiting for this, too. I think in times when browsers tend to restore sessions even beyond close+reopen (who made this up?), a proper logout is definitely needed and should be prioritized accordingly. |
Waiting on this as well. It would be nice to have this please. When would it be available? Would it be part of the spring.security.saml2.relyingparty.registration property under the identityprovider? something like: spring.security.saml2.relyingparty.registration.sp.identityprovider.singlelogout.url? |
Any walk around for the time being? I can't find any examples out there to logout. |
Also us we waiting for this. |
Hi, @aabuniaj. Coincidentally, yes, I was in the middle of updating when you commented. :) You can see the PR for the latest. |
I had a feeling something was getting done! Thanks for the update! |
Hi @jzheaux I'm glad to see SLO implementation added to spring-security. Really appreciate your effort! I was trying to integrate the spring-security development code to implement sp-initialted SLO on my project and here are the problem I meet and my workaround:
The codes seems still changing and I'm not sure the above issue I meet above will be covered by new codes. I'm looking forward to the release of this feature! |
Thanks for the early feedback, @junytse!
The DSL takes care of this concern by adding the processing and logout filters for you: http
.saml2Logout(withDefaults()); Have you already tried using that? |
Hi @jzheaux , glad to see your reply! For your comments:
By the way, in my implementation I construct "LogoutRequest" with the following customizations:
I referenced those changes from previous Spring saml extension: https://github.com/spring-projects/spring-security-saml/blob/main/core/src/main/java/org/springframework/security/saml/websso/SingleLogoutProfileImpl.java#L110 |
Hi @jzheaux glad to see this is ongoing and really appreciate your work! We're really looking forward to adopting it when the official 5.6 comes out, could we by any chance know the schedule for this feature as well as the 5.6 release so that we could arrange our product line nicely? |
Hi @jzheaux |
@VanillaChi, @ooshirokm, glad to hear you are looking forward to it. I've just added the 5.6.0 milestone to address your question. |
@junytse Regarding SessionIndex, will you please add a ticket? There have been a number of requests so far on different threads, and it would be nice to keep track of it in a single place. Regarding #3, would you be able to share a minimal sample (e.g. GitHub) so I can get a picture of what you mean? If you are using XML configuration, it seems to me that you will be able to wire the processing filter and an accompanying logout filter in the same chain. |
@junytse I've updated the PR based on your feedback. Please look for the following changes:
|
I know the ticket is closed but I am new to all this and have some doubt. I am using
I see the same issue i.e.,
Will upgrade to 5.6.0-M3 is more suitable or should I just add the pr changes to my release ? |
Expected Behavior
It would be nice to be able to send a
samlp:LogoutRequest
to the SAML Identity Provider, to trigger a Single Logout.Current Behavior
Currently you can only do a local logout (=invalidate the session), but you stay authenticated to the IdP.
In an authentication-required app, this means that, as soon as you log out locally, you get immediately redirected to the IdP, which logs you right back in.
In effect, this means there is no way to logout at all, except by invalidating the session directly on the IdP (for those that allow it)
The text was updated successfully, but these errors were encountered: