Subversion Repositories Integrator Subversion

Rev

Blame | Last modification | View Log | Download | RSS feed

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

         
        <sec:http auto-config="true" use-expressions="true">
        <sec:form-login login-page="/sistema/login.jsf"
                       login-processing-url="/loginProcess"
                       default-target-url="/index.jsp"
                       authentication-failure-url="/sistema/login.jsf?login_error=1" />
                             
                <sec:intercept-url pattern="/sistema/**" access="isAuthenticated()"/>
                <sec:intercept-url pattern="/sistema/login.jsf" filters="none"/>
                <sec:intercept-url pattern="/sistema/login.xhtml" filters="none"/>
                <sec:intercept-url pattern="/sistema/mega.xhtml" filters="none"/>
               
                <sec:logout logout-url="/sistema_security_logout" logout-success-url="/sistema/index.xhtml"/>
        </sec:http>
       
        <bean id="sistemaAuthenticationProvider" class="br.com.ec.controller.seguranca.SistemaAuthenticationProvider" />
       
        <sec:authentication-manager alias="authManager">
                <sec:authentication-provider ref="sistemaAuthenticationProvider"/>
        </sec:authentication-manager>
       
</beans>