Subversion Repositories Integrator Subversion

Rev

Rev 218 | Rev 242 | 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"?>
2
<beans:beans xmlns="http://www.springframework.org/schema/security"  
3
    xmlns:beans="http://www.springframework.org/schema/beans"  
4
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
5
    xsi:schemaLocation="http://www.springframework.org/schema/beans  
6
    http://www.springframework.org/schema/beans/spring-beans.xsd  
7
    http://www.springframework.org/schema/security  
8
    http://www.springframework.org/schema/security/spring-security.xsd">  
9
 
10
        <!-- 
11
    <http auto-config="true" use-expressions="true">
12
        <form-login login-page="/sistema/login.xhtml" 
13
                    login-processing-url="/loginAcao" 
14
                    default-target-url="/sistema/home.xhtml"
224 espaco 15
                    authentication-failure-url="/sistema/login.xhtml?error=true" />
218 espaco 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"/>
26
    </http>
27
        -->
28
 
29
    <beans:bean id="sistemaAuthenticationProvider" class="br.com.ec.controller.seguranca.SistemaAuthenticationProvider" />
30
 
31
    <authentication-manager alias="authManager">
32
                <authentication-provider ref="sistemaAuthenticationProvider" />
33
        </authentication-manager>
34
 
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>
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> -->