Get IdPSession or SPSession
cantor.2 at osu.edu
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.
On 10/21/21, 8:07 AM, "users on behalf of Cantor, Scott" <users-bounces at shibboleth.net on behalf of cantor.2 at osu.edu> wrote:
On 10/21/21, 8:02 AM, "users on behalf of Domenico Cervino via users" <users-bounces at shibboleth.net on behalf of users at shibboleth.net> 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.
For Consortium Member technical support, see https://urldefense.com/v3/__https://shibboleth.atlassian.net/wiki/x/ZYEpPw__;!!KGKeukY!hjp8Wu2yVmrjRkFLrfzUBcxjbVM2pfH1zwLxygilZAHhxPwuotwdhJMHKHAmRXM$
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
More information about the users