Re: Spring Security 3 authentication url forward

Splash Forums PrettyFaces Users Spring Security 3 authentication url forward Re: Spring Security 3 authentication url forward

#20880

antideluk
Participant

Also, here is the spring configs if you need them:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sec="http://www.springframework.org/schema/security" xmlns:util="http://www.springframework.org/schema/util"
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
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

<sec:http auto-config="true">
<sec:intercept-url pattern="/**" />
<!-- Mapeos a recursos de la aplicacion, sin filtros de seguridad para optimizar -->
<!-- No filtrar los recursos de JSF -->
<sec:intercept-url pattern="/javax.faces.resource/**" filters="none" />
<!-- No filtrar las paginas a las que redirige el pretty filter, es redundante -->
<sec:intercept-url pattern="/WEB-INF/pages/**" filters="none" />
<!-- No filtrar los recursos estaticos agregados manualmente -->
<sec:intercept-url pattern="/static/**" filters="none" />

<sec:form-login login-processing-url="/j_spring_security_check" login-page="/login"
authentication-failure-url="/login?error=true" />

</sec:http>

<sec:authentication-manager>
<sec:authentication-provider>
<sec:jdbc-user-service data-source-ref="dataSource" />
</sec:authentication-provider>
</sec:authentication-manager>

</beans>