Ofcourse.

BUT I want to get session via Ticket id since the request is coming from 
another source which can only provide a ticket id (TGT). Any idea how that 
is 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/f0d88beb-34b7-4d3e-9809-747ca9cd969f%40apereo.org.

Reply via email to