Rev 242 | Rev 299 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 218 | espaco | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 242 | espaco | 2 | |
| 218 | espaco | 3 | <beans:beans xmlns="http://www.springframework.org/schema/security" |
| 4 | xmlns:beans="http://www.springframework.org/schema/beans" |
||
| 5 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
| 6 | xsi:schemaLocation="http://www.springframework.org/schema/beans |
||
| 7 | http://www.springframework.org/schema/beans/spring-beans.xsd |
||
| 8 | http://www.springframework.org/schema/security |
||
| 9 | http://www.springframework.org/schema/security/spring-security.xsd"> |
||
| 10 | |||
| 11 | <http auto-config="true" use-expressions="true"> |
||
| 242 | espaco | 12 | <form-login login-page="/sistema/login.jsf" |
| 218 | espaco | 13 | login-processing-url="/loginAcao" |
| 242 | espaco | 14 | default-target-url="/index.jsp" |
| 15 | authentication-failure-url="/sistema/login.jsf?login_error=1" /> |
||
| 218 | espaco | 16 | |
| 242 | espaco | 17 | <intercept-url pattern="/sistema/login.jsf" access="permitAll" /> |
| 18 | <intercept-url pattern="/sistema/login.xhtml" access="permitAll" /> |
||
| 245 | espaco | 19 | <intercept-url pattern="/sistema/login_esqueci_senha.xhtml" access="permitAll" /> |
| 20 | |||
| 242 | espaco | 21 | <intercept-url pattern="/sistema/**" access="authenticated" /> |
| 22 | <csrf disabled="true" /> |
||
| 23 | |||
| 24 | <logout logout-url="/sistema_security_logout" logout-success-url="/sistema/pagina_inicial.xhtml"/> |
||
| 218 | espaco | 25 | </http> |
| 242 | espaco | 26 | |
| 218 | espaco | 27 | <beans:bean id="sistemaAuthenticationProvider" class="br.com.ec.controller.seguranca.SistemaAuthenticationProvider" /> |
| 242 | espaco | 28 | |
| 29 | <authentication-manager alias="authManager"> |
||
| 30 | <authentication-provider ref="sistemaAuthenticationProvider"/> |
||
| 218 | espaco | 31 | </authentication-manager> |
| 32 | |||
| 33 | </beans:beans> |