Aman,

When you say 'other system' do you mean the CAS login server?
Are you sure you want to access TGT?
If you have a service that wants to verify a user (CAS login session?) you 
could look into proxy, 
https://apereo.github.io/cas/5.2.x/installation/Configuring-Proxy-Authentication.html

Ray

On Sun, 2018-04-29 at 20:57 -0700, Aman Garg wrote:
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>.



--
Ray Bon
Programmer analyst
Development Services, University Systems
2507218831 | CLE 019 | [email protected]

-- 
- 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/1525105089.1799.8.camel%40uvic.ca.

Reply via email to