Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <beans xmlns="http://www.springframework.org/schema/beans" |
||
| 3 | xmlns:sec="http://www.springframework.org/schema/security" |
||
| 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
| 5 | xmlns:jee="http://www.springframework.org/schema/jee" |
||
| 6 | xsi:schemaLocation="http://www.springframework.org/schema/beans |
||
| 7 | http://www.springframework.org/schema/beans/spring-beans-3.0.xsd |
||
| 8 | http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd |
||
| 9 | http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd"> |
||
| 10 | |||
| 11 | <sec:http auto-config="true" use-expressions="true"> |
||
| 12 | <sec:form-login login-page="/sistema/login.jsf" |
||
| 13 | login-processing-url="/loginProcess" |
||
| 14 | default-target-url="/sistema/index.xhtml" |
||
| 15 | authentication-failure-url="/sistema/login.jsf?login_error=1" /> |
||
| 16 | |||
| 17 | <!--<sec:intercept-url pattern="/paginas/**" access="ROLE_ADMIN" />--> |
||
| 18 | <!-- <sec:intercept-url pattern="/sistema/**" filters="none" /> --> |
||
| 19 | <sec:intercept-url pattern="/sistema/**" access="isAuthenticated()"/> |
||
| 20 | <sec:intercept-url pattern="/sistema/css/**" filters="none"/> |
||
| 21 | <sec:intercept-url pattern="/paginas/login.jsf" filters="none"/> |
||
| 22 | <sec:intercept-url pattern="/sistema/login.jsf" filters="none"/> |
||
| 23 | <sec:intercept-url pattern="/sistema/esqueceu_senha.xhtml" filters="none"/> |
||
| 24 | |||
| 25 | <sec:logout logout-url="/sistema_security_logout" logout-success-url="/sistema/index.xhtml"/> |
||
| 26 | </sec:http> |
||
| 27 | |||
| 28 | <bean id="sistemaAuthenticationProvider" class="br.edu.cesmac.sca.seguranca.authentication.SistemaAuthenticationProvider"> |
||
| 29 | <constructor-arg name="scaWsProperties" ref="scaWsProperties"/> |
||
| 30 | <constructor-arg name="codigoSistema" value="SIC"/> |
||
| 31 | </bean> |
||
| 32 | |||
| 33 | <jee:jndi-lookup id="scaWsProperties" jndi-name="resource/scaWS" expected-type="java.util.Properties" /> |
||
| 34 | |||
| 35 | <sec:authentication-manager alias="authManager"> |
||
| 36 | <sec:authentication-provider ref="sistemaAuthenticationProvider"/> |
||
| 37 | </sec:authentication-manager> |
||
| 38 | |||
| 39 | </beans> |