Rev 224 | Rev 245 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 224 | Rev 242 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | <?xml version="1.0" encoding="UTF-8"?>
|
1 | <?xml version="1.0" encoding="UTF-8"?>
|
| - | 2 | ||
| 2 | <beans:beans xmlns="http://www.springframework.org/schema/security"
|
3 | <beans:beans xmlns="http://www.springframework.org/schema/security"
|
| 3 | xmlns:beans="http://www.springframework.org/schema/beans"
|
4 | xmlns:beans="http://www.springframework.org/schema/beans"
|
| 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
5 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| 5 | xsi:schemaLocation="http://www.springframework.org/schema/beans
|
6 | xsi:schemaLocation="http://www.springframework.org/schema/beans
|
| 6 | http://www.springframework.org/schema/beans/spring-beans.xsd
|
7 | http://www.springframework.org/schema/beans/spring-beans.xsd
|
| 7 | http://www.springframework.org/schema/security
|
8 | http://www.springframework.org/schema/security
|
| 8 | http://www.springframework.org/schema/security/spring-security.xsd">
|
9 | http://www.springframework.org/schema/security/spring-security.xsd">
|
| 9 | 10 | ||
| 10 | <!--
|
- | |
| 11 | <http auto-config="true" use-expressions="true">
|
11 | <http auto-config="true" use-expressions="true">
|
| 12 | <form-login login-page="/sistema/login.xhtml"
|
- | |
| - | 12 | <form-login login-page="/sistema/login.jsf"
|
|
| 13 | login-processing-url="/loginAcao"
|
13 | login-processing-url="/loginAcao"
|
| 14 | default-target-url="/sistema/home.xhtml"
|
- | |
| 15 | authentication-failure-url="/sistema/login.xhtml?error=true" />
|
- | |
| - | 14 | default-target-url="/index.jsp"
|
|
| - | 15 | authentication-failure-url="/sistema/login.jsf?login_error=1" />
|
|
| 16 |
|
16 | |
| 17 | <intercept-url pattern="/sistema/**" access="isAuthenticated()"/>
|
- | |
| 18 | -->
|
- | |
| 19 | <!-- <http pattern="/sistema/login.jsf" security="none" />
|
- | |
| 20 | <http pattern="/sistema/login.xhtml" security="none"/>
|
- | |
| 21 | <intercept-url pattern="/sistema/mega.xhtml" filters="none"/>
|
- | |
| 22 |
|
- | |
| 23 | <intercept-url pattern="/sistema/login" access="hasRole('ROLE_ADMIN')" />
|
- | |
| 24 |
|
- | |
| 25 | <logout logout-url="/sistema_security_logout" logout-success-url="/sistema/index.xhtml"/>
|
- | |
| - | 17 | <intercept-url pattern="/sistema/login.jsf" access="permitAll" />
|
|
| - | 18 | <intercept-url pattern="/sistema/login.xhtml" access="permitAll" />
|
|
| - | 19 | <intercept-url pattern="/sistema/**" access="authenticated" />
|
|
| - | 20 | <csrf disabled="true" />
|
|
| - | 21 | ||
| - | 22 | <logout logout-url="/sistema_security_logout" logout-success-url="/sistema/pagina_inicial.xhtml"/>
|
|
| 26 | </http>
|
23 | </http>
|
| 27 | -->
|
- | |
| 28 | - | ||
| - | 24 | ||
| 29 | <beans:bean id="sistemaAuthenticationProvider" class="br.com.ec.controller.seguranca.SistemaAuthenticationProvider" />
|
25 | <beans:bean id="sistemaAuthenticationProvider" class="br.com.ec.controller.seguranca.SistemaAuthenticationProvider" />
|
| 30 | - | ||
| 31 | <authentication-manager alias="authManager">
|
- | |
| 32 | <authentication-provider ref="sistemaAuthenticationProvider" />
|
- | |
| - | 26 | ||
| - | 27 | <authentication-manager alias="authManager">
|
|
| - | 28 | <authentication-provider ref="sistemaAuthenticationProvider"/>
|
|
| 33 | </authentication-manager>
|
29 | </authentication-manager>
|
| 34 | 30 | ||
| 35 | <!--
|
- | |
| 36 | <authentication-manager>
|
- | |
| 37 | <authentication-provider>
|
- | |
| 38 | <user-service>
|
- | |
| 39 | <user name="admin" password="1234" authorities="hasRole(ROLE_ADMIN)" />
|
- | |
| 40 | </user-service>
|
- | |
| 41 | </authentication-provider>
|
- | |
| 42 | </authentication-manager>
|
- | |
| 43 | -->
|
- | |
| 44 | </beans:beans>
|
31 | </beans:beans>
|
| 45 | <!-- <?xml version="1.0" encoding="UTF-8"?>
|
- | |
| 46 | <b:beans xmlns:sec="http://www.springframework.org/schema/security"
|
- | |
| 47 | xmlns:b="http://www.springframework.org/schema/beans"
|
- | |
| 48 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
- | |
| 49 | xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
|
- | |
| 50 | http://www.springframework.org/schema/security https://www.springframework.org/schema/security/spring-security.xsd">
|
- | |
| 51 | - | ||
| 52 | <sec:http auto-config="true" use-expressions="true">
|
- | |
| 53 | <sec:form-login login-page="/sistema/login.jsf"
|
- | |
| 54 | login-processing-url="/loginProcess"
|
- | |
| 55 | default-target-url="/index.jsp"
|
- | |
| 56 | authentication-failure-url="/sistema/login.jsf?login_error=1" />
|
- | |
| 57 |
|
- | |
| 58 | <sec:intercept-url pattern="/sistema/**" access="isAuthenticated()"/>
|
- | |
| 59 | <sec:intercept-url pattern="/sistema/login.jsf" filters="none"/>
|
- | |
| 60 | <sec:intercept-url pattern="/sistema/login.xhtml" filters="none"/>
|
- | |
| 61 | <sec:intercept-url pattern="/sistema/mega.xhtml" filters="none"/>
|
- | |
| 62 |
|
- | |
| 63 | <sec:logout logout-url="/sistema_security_logout" logout-success-url="/sistema/index.xhtml"/>
|
- | |
| 64 | </sec:http>
|
- | |
| 65 |
|
- | |
| 66 | <b:bean id="sistemaAuthenticationProvider" class="br.com.ec.controller.seguranca.SistemaAuthenticationProvider" />
|
- | |
| 67 |
|
- | |
| 68 | <sec:authentication-manager alias="authManager">
|
- | |
| 69 | <sec:authentication-provider ref="sistemaAuthenticationProvider"/>
|
- | |
| 70 | </sec:authentication-manager>
|
- | |
| 71 | - | ||
| 72 | </b:beans> -->
|
- | |