I also debugged TerminateSessionAction and the ticket granting ticket it 
retrieves is also null.

On Tuesday, April 12, 2016 at 8:06:06 AM UTC-4, Robert wrote:
>
> Hi,
>
> I'm trying to get the CAS Principal (the authenticated user) from the TGT 
> in the logout web flow.  So, I tried to get the authenticated user's TGT at 
> the beginning of the logout web flow (i.e. stateEntering of 
> terminateSessionAction) using a web flow listener.  I have tried getting 
> the TGT ID using WebUtils.getTicketGrantingTicketId(context) 
> and ticketGrantingTicketCookieGenerator.retrieveCookieValue(request), but 
> both method calls return null.  I looked at the cookies with 
> request.getCookies() and it returns just the JSESSIONID cookie, so it 
> appears that the TGT cookie has been destroyed.  But, when I get the 
> tickets 
> using centralAuthenticationService.getTickets(TruePredicate.truePredicate()), 
> I see that the TGT is still in the DefaultTicketRegistry 
> and ticketGrantingTicket.isExpired() returns false.  Is there another way 
> to get the TGT and CAS Principal when the user logs out?
>
> Thanks!
>
> -- 
> 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 cas-user+unsubscr...@apereo.org.
> Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/
> .
> To view this discussion on the web visit 
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/c21550e3-6b55-4dae-9c0a-84e16bcce861%40apereo.org
>  
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/c21550e3-6b55-4dae-9c0a-84e16bcce861%40apereo.org?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/a/apereo.org/d/optout.
>

-- 
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 cas-user+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/a608157e-7f9f-4f26-9365-db487278ccfc%40googlegroups.com.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to