Announcement Announcement Module
No announcement yet.
Spring Security+CAS always response to defaultTargetUrl page? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Security+CAS always response to defaultTargetUrl page?

    When cas authentication success then go to defaultTargetUrl page; but when user is chick the system menu,the new page always jump to defaultTargetUrl page,why? The result I want is:when first login to defaultTargetUrl page, and then click menu should open the menu url page.
    The applicationContext-security.xml file:

    <http entry-point-ref="casEntryPoint" use-expressions="true">
    <logout logout-success-url="/cas-logout.jsp" />


    <b:bean id="serviceProperties" class=" perties"
    p:service="http://${}/testweb/j_spring_cas_security_check" p:sendRenew="false"

    <b:bean id="casEntryPoint" class=" henticationEntryPoint"
    p:serviceProperties-ref="serviceProperties" p:loginUrl="http://${}/testcas/login">

    <b:bean id="casFilter" class=" henticationFilter">
    <broperty name="authenticationManager" ref="casAuthenticationManager"/>
    <broperty name="authenticationSuccessHandler">
    <b:bean class=" tion.SimpleUrlAuthenticationSuccessHandler"
    p:alwaysUseDefaultTargetUrl="true" p:defaultTargetUrl="http://${}/testcas/casGenericSuccess.jsp" />
    Last edited by lzf0112; Apr 10th, 2013, 07:15 AM. Reason: description the result i want to.

  • #2

    If you are always redirected to the default target url (I mean every time you try to access a protected page), I'm thinking that you are being re-authenticated against CAS each time (as if you have no web session).
    Can you track HTTP requests and see if you have always a round-trip with the CAS server ?
    Best regards,