Ok, it does help to pass the parameters after building them in the code. However, I am now getting html response indicating CAS Server is not available and that something went wrong.
Taking a look at the cas log, shows the ticket failed validation after i get the login ticket: Login: 2012-11-21 16:20:34,568 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - Audit trail record BEGIN ============================================================= WHO: [username: joe.daughtery.usa] WHAT: TGT-50-FGwdbh403CvOJIFLDgqGXc0qISS0qSaCpewpEQw66GnmGsd6Re-owf.dev.wisrd.org ACTION: TICKET_GRANTING_TICKET_CREATED APPLICATION: CAS WHEN: Wed Nov 21 16:20:34 UTC 2012 CLIENT IP ADDRESS: 208.101.221.137 SERVER IP ADDRESS: 10.29.28.43 ============================================================= Attempt to validate ticket from login: ============================================================= WHO: joe.daughtery.usa WHAT: TGT-50-FGwdbh403CvOJIFLDgqGXc0qISS0qSaCpewpEQw66GnmGsd6Re-owf.dev.wisrd.org ACTION: SERVICE_TICKET_VALIDATE_FAILED APPLICATION: CAS WHEN: Wed Nov 21 16:20:46 UTC 2012 CLIENT IP ADDRESS: 208.101.221.137 SERVER IP ADDRESS: 10.29.28.43 ============================================================= I am actually, calling the login url, obtaining the ticket returned and for testing purposes, calling the serviceValidate to make sure I can validate the ticket. Note that I am using the same HttpClient to execute the login and validate calls to make sure I have the same session id. Any thoughts on what might be wrong? Thanks Joe On Wed, Nov 21, 2012 at 10:04 AM, Scott Battaglia <[email protected] > wrote: > The response from the CAS server indicates that it doesn't think you are > :-) > > Can you post one of the service validate URLs generated (i.e. from an > Apache access log on the CAS side)? Maybe there is some encoding issue. > > > On Wed, Nov 21, 2012 at 10:02 AM, Joey Daughtery < > [email protected]> wrote: > >> Yes, I am sending both service and ticket parameters. >> >> Thanks >> >> Joe >> >> >> On Wed, Nov 21, 2012 at 9:58 AM, Scott Battaglia < >> [email protected]> wrote: >> >>> Are you passing both a service parameter and a ticket parameter when you >>> call validate? >>> >>> >>> On Wed, Nov 21, 2012 at 9:44 AM, Joey Daughtery < >>> [email protected]> wrote: >>> >>>> Jerome >>>> Thanks for the response. The following is the response: >>>> <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'> >>>> <cas:authenticationFailure code='INVALID_REQUEST'> >>>> 'service' and 'ticket' parameters are both >>>> required >>>> </cas:authenticationFailure> >>>> </cas:serviceResponse> >>>> >>>> Thanks >>>> >>>> Joe >>>> >>>> On Wed, Nov 21, 2012 at 9:33 AM, jleleu <[email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> The log you posted told you that you have been authenticated (CASTGC >>>>> cookie created), though it didn't tell you that your ticket has been >>>>> validated. >>>>> Is it the complete log ? >>>>> >>>>> What is the exact response from the /serviceValidate url ? Issue with >>>>> ticket or service ? HTTP code ? >>>>> >>>>> Thanks, >>>>> Jérôme >>>>> >>>>> >>>>> -- >>>>> 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 >>> >>> >> -- >> 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
