Re: Spring Security Logout problem with Pretty Faces

Splash Forums PrettyFaces Users Spring Security Logout problem with Pretty Faces Re: Spring Security Logout problem with Pretty Faces

#21600

KaarinaS
Participant

Our Spring Security configurations:

<?xml version=”1.0″ encoding=”UTF-8″?>

<beans xmlns=”http://www.springframework.org/schema/beans”

xmlns:security=”http://www.springframework.org/schema/security”

xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”

xsi:schemaLocation=”http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

http://www.springframework.org/schema/security

http://www.springframework.org/schema/security/spring-security-3.0.xsd“>

<security:http use-expressions=”true”>

<security:intercept-url pattern=”/login” access=”!isAuthenticated()”/>

<security:intercept-url pattern=”/STATIC/**” filters=”none”/>

<security:intercept-url pattern=”/WEB-INF/**” filters=”none”/>

<security:intercept-url pattern=”/javax.faces.resource/**” filters=”none”/>

<security:intercept-url pattern=”/**” access=”isAuthenticated()”/>

<security:session-management session-fixation-protection=”none”/>

<security:form-login login-page=”/login”

login-processing-url=”/j_spring_security_check”

default-target-url=”/home”

always-use-default-target=”true”

authentication-failure-url=”/login”/>

<security:logout invalidate-session=”true”

logout-url=”/j_spring_security_logout”

logout-success-url=”/login”/>

</security:http>

<security:authentication-manager>

<security:authentication-provider ref=”authenticationProvider” />

</security:authentication-manager>

</beans>