Get IdPSession or SPSession

Cantor, Scott cantor.2 at
Thu Oct 21 12:13:25 UTC 2021

In the interest of not just flat out not answering, I'll just say that it hugely depends on where one is in a flow and what work has been done. Conceptually, the answer is that there's a SessionContext below the ProfileRequestContext established at the beginning of authentication that carries the loaded IdPSession, and from a servlet you have to access a Servlet Attribute called opensamlProfileRequestContext to get at the tree.

And you also have to get access to the SessionManager implementation, which is not something you can just "do"; this is Spring so you have to inject it into a piece of code as a dependency.

-- Scott

On 10/21/21, 8:07 AM, "users on behalf of Cantor, Scott" <users-bounces at on behalf of cantor.2 at> wrote:

    On 10/21/21, 8:02 AM, "users on behalf of Domenico Cervino via users" <users-bounces at on behalf of users at> wrote:

    >    It's possible to recover the object net.shibboleth.idp.session.IdPSession o
    > net.shibboleth.idp.session.SPSession in una servlet java ?

    Yes, but that kind of help is beyond the free support available here from me. You would have to be well versed in Spring, and do a lot of work to understand the internals. i.e., no, just redirect to the logout endpoint.

    -- Scott

    For Consortium Member technical support, see;!!KGKeukY!hjp8Wu2yVmrjRkFLrfzUBcxjbVM2pfH1zwLxygilZAHhxPwuotwdhJMHKHAmRXM$ 
    To unsubscribe from this list send an email to users-unsubscribe at

More information about the users mailing list