All
When I add the CAS Authentication Filter configuration to my web.xml, the
cas server after I login manually, redirects me to my endpoint with the
Service Ticket.

However, I need to be able to perform all the cas authentication
programmatically.

I am able to programmatically obtain the lt value, then login and see the
TGT cookie.  I then hit the login url again with userName, password, and
gate set to true.  I do see in the logs:

2012-11-21 18:53:50,276 INFO
[com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - Audit
trail record BEGIN
=============================================================
WHO: joe.daughtery.usa
WHAT: ST-16-idbOa2aNbA43HXbTSiVX-owf.dev.wisrd.org for http://192.168.
...:8080/iHarvest/rest/orion/users
ACTION: SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: Wed Nov 21 18:53:50 UTC 2012
CLIENT IP ADDRESS: 208.101.....
SERVER IP ADDRESS: 10.29.28.43
=============================================================

However, the redirect never hits my endpoint running on my local machine.

Note that when I wrap the servlet container with the CAS Authentication
Filter configuration, I do see the same "CLIENT_IP ADDRESS" and service url
printed out in the logs as above.

So, why is CAS able to redirect when I wrap the servlet container with CAS
Authentication Filter configuration, and not able to do so when I call it
programmatically?

Note that when I wrap the servlet container, i pass in casServerLoginUrl
and serverName parameters where serverName is set with the 192.168...ip
address.

Thanks

Joe

-- 
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