Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Contacts Cas app. not getting redirected to cas server login page

  1. #11

    Default ServiceTicket does not match supplied service

    Code:
    <property name="service"><value>https://localhost:8443/concas/j_acegi_cas_security_check</value></property>
    i have changed the service properties url as above
    Scott Battaglia comments in the following links were helpful
    http://forum.springframework.org/arc...p/t-22527.html
    The way the default implementation of the CAS stuff works is that when you try and access a secure page, Acegi will capture that page URL. It will then redirect you to CAS with the service url that is something like https://{server}/{appcontext}/j_acegi_cas_security?ticket=ST-....

    After authenticating to CAS you should be redirected to that service url and validate the ticket. You should then be redirected back to the correct page.
    What do you mean by dead of ticket?

    If you attempt to access a secure page of Contacts-CAS you should be redirected to the CAS login which after successful authentication should redirect you back to Contacts CAS as a logged in user. Once you are logged into Contacts-CAS the tickets should no longer matter.

    After i submit the login form i am taken to this url
    https://localhost:8443/cas/login?ser...7ACD8BF6F68E07

    Code:
    2007-02-27 15:26:46,651 DEBUG [org.jasig.cas.CentralAuthenticationServiceImpl] - <Attempting to create TicketGrantingTicket for org.jasig.cas.authentication.principal.UsernamePasswordCredentials@ddc2c2[userName=marissa]>
    2007-02-27 15:26:46,666 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - <AuthenticationHandler: org.acegisecurity.adapters.cas3.CasAuthenticationHandler successfully authenticated the user.>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver] - <Creating SimplePrincipal for [marissa]>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Added ticket [TGT-2-aT3IHY2CdfSlv5B1FglSNhxcG51fXuacvPF-50] to registry.>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.web.util.SecureCookieGenerator] - <Removed cookie with name [CASPRIVACY]>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.web.flow.AuthenticationViaFormAction] - <Action 'org.jasig.cas.web.flow.AuthenticationViaFormAction' completed execution; result event is [Event@123fee1 source = org.jasig.cas.web.flow.AuthenticationViaFormAction@a0d37f, id = 'success', stateId = [null], parameters = [null]]>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.web.flow.SendTicketGrantingTicketAction] - <Action 'org.jasig.cas.web.flow.SendTicketGrantingTicketAction' beginning execution>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.web.util.SecureCookieGenerator] - <Added cookie with name [CASTGC] and value [TGT-2-aT3IHY2CdfSlv5B1FglSNhxcG51fXuacvPF-50]>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.web.flow.SendTicketGrantingTicketAction] - <Action 'org.jasig.cas.web.flow.SendTicketGrantingTicketAction' completed execution; result event is [Event@327cee source = org.jasig.cas.web.flow.SendTicketGrantingTicketAction@a7f8a4, id = 'success', stateId = [null], parameters = [null]]>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.web.flow.HasServiceCheckAction] - <Action 'org.jasig.cas.web.flow.HasServiceCheckAction' beginning execution>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.web.flow.HasServiceCheckAction] - <Action 'org.jasig.cas.web.flow.HasServiceCheckAction' completed execution; result event is [Event@1b4fe4d source = org.jasig.cas.web.flow.HasServiceCheckAction@1a38598, id = 'hasService', stateId = [null], parameters = [null]]>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.web.flow.GenerateServiceTicketAction] - <Action 'org.jasig.cas.web.flow.GenerateServiceTicketAction' beginning execution>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Attempting to retrieve ticket [TGT-2-aT3IHY2CdfSlv5B1FglSNhxcG51fXuacvPF-50]>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Ticket [TGT-2-aT3IHY2CdfSlv5B1FglSNhxcG51fXuacvPF-50] found in registry.>
    2007-02-27 15:26:46,666 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Added ticket [ST-2-04e6CDK7deL9JL9F7IlsDtN0MkyULkrGe6I-20] to registry.>
    2007-02-27 15:26:46,666 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - <Granted service ticket [ST-2-04e6CDK7deL9JL9F7IlsDtN0MkyULkrGe6I-20] for service [https://localhost:8443/concas/j_acegi_cas_security_check;jsessionid=A5F7591668AC1D411D7ACD8BF6F68E07] for user [marissa]>
    2007-02-27 15:26:46,682 DEBUG [org.jasig.cas.web.flow.GenerateServiceTicketAction] - <Action 'org.jasig.cas.web.flow.GenerateServiceTicketAction' completed execution; result event is [Event@1247c45 source = org.jasig.cas.web.flow.GenerateServiceTicketAction@5aad2a, id = 'success', stateId = [null], parameters = [null]]>
    2007-02-27 15:26:46,682 DEBUG [org.jasig.cas.web.flow.WarnAction] - <Action 'org.jasig.cas.web.flow.WarnAction' beginning execution>
    2007-02-27 15:26:46,682 DEBUG [org.jasig.cas.web.flow.WarnAction] - <Action 'org.jasig.cas.web.flow.WarnAction' completed execution; result event is [Event@11ebc46 source = org.jasig.cas.web.flow.WarnAction@dad6d0, id = 'redirect', stateId = [null], parameters = [null]]>
    2007-02-27 15:26:46,807 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Attempting to retrieve ticket [ST-2-04e6CDK7deL9JL9F7IlsDtN0MkyULkrGe6I-20]>
    2007-02-27 15:26:46,807 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Ticket [ST-2-04e6CDK7deL9JL9F7IlsDtN0MkyULkrGe6I-20] found in registry.>
    2007-02-27 15:26:46,807 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Removing ticket [ST-2-04e6CDK7deL9JL9F7IlsDtN0MkyULkrGe6I-20] from registry>
    2007-02-27 15:26:46,807 DEBUG [org.jasig.cas.CentralAuthenticationServiceImpl] - <ServiceTicket [ST-2-04e6CDK7deL9JL9F7IlsDtN0MkyULkrGe6I-20] does not match supplied service.>

  2. #12

    Default

    When i remove the /login from the url

    <property name="loginUrl"><value>https://localhost:8443/cas</value></property>

    i am authenticated (login successful page). But its not getting
    redirected to the service url.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •