I implemented SSO using Spring SAML Security. Here is what works for me now:
When I try to access any resource in SP, I am redirected to my IdP (idp.ssocircle.com in my case) if I have not already logged in. After successfully authenticating with the IDP, I am redirected back to the SP and authorize the incoming SAML response and create a session for the corresponding user. Everything is cool here! But when I exit my IDP (causing the exit from the idp.ssocircle.com file from the outside), I should not have access to my SP, which does not happen in my case. Now what I'm going to do is write a new filter that checks for a valid session in IDP before processing any request to the SP. I searched a lot, but could not find a solution to my problem.
Please provide materials on how I can implement this filter, or is there any other way to do this? Any suggestions are welcome.
source
share