Hi,

I don't know how to phrase this question since my cas knowledge is very limited. In a nutshell, I am testing out a custom authentication filter and I can't retrieve the principal from the session. Basically, when I try to log into my application it goes through the cas login and a service ticket is created and I am authenticated according to the log file and then my custom filter starts up... Through the custom filter, it acknowledges that a session does exist but when the code performs the lines below, it claims that the principal is null.

final Assertion assertion = (Assertion) (session == null ? request.getAttribute(AbstractCasFilter.CONST_CAS_ASSERTION)
   : session.getAttribute(AbstractCasFilter.CONST_CAS_ASSERTION));

I am not sure if I am supposed to include the AssertionThreadLocalFilter or HttpServletRequestWrapperFilter in the web.xml to retrieve the information, though I thought I read that if I use the code segment above I wouldn't need to use them.

Any suggestions as to how to get the principal would be appreciated.

Thanks,
 Laura


--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to