In my case, request is coming from another system. So, it won't be having the session of logged in user of this system. But the other system can provide the ticket id (TGT). So, I am looking for a way to get session object via ticket id. Is that possible?
On Friday, April 27, 2018 at 8:15:00 PM UTC+5:30, Manfredo Hopp wrote: > > You mau obtain sesión from request > > El viernes, 27 de abril de 2018, Aman Garg <[email protected] > <javascript:>> escribió: > >> Is there a way a CAS client (I am using cas-client-core-3.4.1.jar) can >> access HttpSession object by using ticket it? >> >> I could see that the above requirement can be fulfilled by: >> >> >> 1) Accessing following methods >> of HashMapBackedSessionMappingStorage.class >> >> public synchronized void addSessionById(String mappingId, HttpSession >> session) >> public synchronized HttpSession removeSessionByMappingId(String >> mappingId) >> >> (mappingId in above methods is TGT id if I am not wrong) >> >> 2) Above step would require access to instance of >> HashMapBackedSessionMappingStorage which can be get if I have access to >> following method of SingleSignOutHttpSessionListener.class: >> protected static SessionMappingStorage getSessionMappingStorage() >> >> >> But above method is protected and SingleSignOutHttpSessionListener.class >> is marked final. >> >> Is there any way I can accomplish this requirement? >> >> >> -- >> - Website: https://apereo.github.io/cas >> - Gitter Chatroom: https://gitter.im/apereo/cas >> - List Guidelines: https://goo.gl/1VRrw7 >> - Contributions: https://goo.gl/mh7qDG >> --- >> You received this message because you are subscribed to the Google Groups >> "CAS Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/a/apereo.org/d/msgid/cas-user/e4358dc5-ecbc-446c-82ac-230972aa2c23%40apereo.org >> >> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/e4358dc5-ecbc-446c-82ac-230972aa2c23%40apereo.org?utm_medium=email&utm_source=footer> >> . >> > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/4ef38626-327b-4667-96fc-0d2ad49ec4d1%40apereo.org.
