Announcement Announcement Module
Collapse
No announcement yet.
Multiple logout-configurations in a WebSecurityContext.xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple logout-configurations in a WebSecurityContext.xml

    I am serving a webapp and a mobile app from the same server, thus I want two different logout-targets in the security context.
    I have the following code:

    Code:
    <http .....
            <logout logout-url="/mobile/logout" logout-success-url="/mobile/login"/>
            
           <form-login login-page="/mobile/login"
            default-target-url="/mobile/main"
            always-use-default-target='true'
            authentication-failure-url="/mobile/login?login_error=true"/>
    
            <logout logout-url="/logout" logout-success-url="/"/>
           
            <form-login login-page="/"
            default-target-url="/loginOk"
            always-use-default-target='true'
            authentication-failure-url="/login?login_error=true"/>
    ....</http>
    With this configuration the mobile-logout is working the ordinary is not. If I swap places on the two logout-configurations the ordinary logout works and the mobile-logout configuration is not working. It seems like only the first logout-tag is considered. Any solutions to this?

    Any help is greatly appretiated!
Working...
X