Hrm, seem to not be having much luck. Using Seam and Icefaces I'm trying not to hit the HttpServletRequest object directly, but even in doing so I see:
07:26:01,125 INFO [CasAuthenticator] ****************************** request.getRemoteUser() = null 07:26:01,125 INFO [CasAuthenticator] ****************************** request.getUserPrincipal() = null Below is my web.xml: < filter > < filter-name > CAS Authentication Filter </ filter-name > < filter-class > org . jasig . cas .client.authentication.AuthenticationFilter </ filter-class > < init-param > < param-name > casServerLoginUrl </ param-name > < param-value > http://cas.myserver.com/cas/login </ param-value > </ init-param > < init-param > < param-name > service </ param-name > < param-value > http://localhost:8080/testapp/mypage.seam </ param-value > </ init-param > </ filter > < filter > < filter-name > CAS Validation Filter </ filter-name > < filter-class > org . jasig . cas .client.validation.Cas20ProxyReceivingTicketValidationFilter </ filter-class > < init-param > < param-name > casServerUrlPrefix </ param-name > < param-value > http://cas.myserver.com/cas </ param-value > </ init-param > < init-param > < param-name > service </ param-name > < param-value > http://localhost:8080/testapp/mypage.seam </ param-value > </ init-param > </ filter > < filter > < filter-name > CAS HttpServletRequest Wrapper Filter </ filter-name > < filter-class > org . jasig . cas .client. util .HttpServletRequestWrapperFilter </ filter-class > </ filter > < filter-mapping > < filter-name > CAS Authentication Filter </ filter-name > < url-pattern > /* </ url-pattern > </ filter-mapping > < filter-mapping > < filter-name > CAS Validation Filter </ filter-name > < url-pattern > /* </ url-pattern > </ filter-mapping > < filter-mapping > < filter-name > CAS HttpServletRequest Wrapper Filter </ filter-name > < url-pattern > /* </ url-pattern > </ filter-mapping > What I'm seeing from the filters is that if I'm not logged in it immediately redirects me to the CAS Login page and sends me back to the service URL upon authentication implying to me that CAS IS authenticating correctly. It seems to me that there should be some CAS object out there that I ought to be able to query for this information? Any Suggestions? Thanks again!! Gerald ----- Original Message ----- From: "Scott Battaglia" <[email protected]> To: [email protected] Sent: Monday, June 22, 2009 8:17:23 PM GMT -06:00 US/Canada Central Subject: Re: [cas-user] Very confused: jasig-client-3.1.6 If you've configured the filters correctly, then you just use the standard Servlet calls: i.e. request.getRemoteUser() or request.getPrincipal() Cheers, Scott On Mon, Jun 22, 2009 at 4:18 PM, Gerald D. Anderson < [email protected] > wrote: Greetings all. I am doing some work for a company that has a liferay portal that is using CAS (3.3.2) for authentication. I have written a JBoss Seam (2.1.1) app for said company and I need to authenticate to their CAS server. I've downloaded cas-client-core-3.1.6.jar and have the filters configured (they appear to be working) in web.xml. So far so good. However, now I've hit a complete and total brick wall. I can find ZERO documentation on the java side of things for the ja-sig java client. I can find 100 things on configuring sprint, web.xml, etc, but nothing on how to validate the authentication from the java side. What I'm trying to do is modify my authenticator just to verify that the current session has been authenticated correctly through CAS and get the principal information (username is all I really care about). Then I hope to load the seam entity for the user and throw it in the Seam identity. All of this in a java class file (Seam component) if that's not clear. Could anybody please send me in the direction of documentation regarding how to use the java client to verify/get this information? I'll take example code, javadocs with some directional pointers, just about anything at this point ; ) Thanks! Gerald Anderson -- 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 -- 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 -- 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
