]> git.argeo.org Git - gpl/argeo-slc.git/blob - modules/server/org.argeo.slc.webapp.war/WEB-INF/security.xml
Improve Security
[gpl/argeo-slc.git] / modules / server / org.argeo.slc.webapp.war / WEB-INF / security.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:security="http://www.springframework.org/schema/security"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5 xsi:schemaLocation="
6 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">
8
9 <bean id="authenticationEntryPoint"
10 class="org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint">
11 <property name="loginFormUrl"
12 value="http://localhost/org.argeo.security.webapp/getCredentials.ria" />
13 <property name="forceHttps" value="false" />
14 </bean>
15
16 <security:http entry-point-ref="authenticationEntryPoint">
17 <security:intercept-url pattern="/*.service"
18 access="ROLE_USER,ROLE_ADMIN,ROLE_ANONYMOUS" />
19 <security:anonymous username="anonymous"
20 granted-authority="ROLE_ANONYMOUS" />
21 <security:remember-me key="argeo" services-ref="rememberMeServices" />
22 </security:http>
23
24 <bean id="rememberMeServices" class="org.argeo.security.mvc.ArgeoRememberMeServices">
25 <property name="alwaysRemember" value="true" />
26 <property name="userDetailsService" ref="userDetailsService" />
27 <property name="key" value="${argeo.security.systemKey}" />
28 </bean>
29
30 <!--
31
32
33 <bean id="authenticationProcessingFilter"
34 class="org.springframework.security.ui.webapp.AuthenticationProcessingFilter">
35 <security:custom-filter position="AUTHENTICATION_PROCESSING_FILTER" />
36 <property name="authenticationManager" ref="_authenticationManager" />
37 <property name="authenticationFailureUrl" value="/getCredentials.ria"
38 /> <property name="defaultTargetUrl" value="/getCredentials.ria" />
39 <property name="filterProcessesUrl" value="/login.ria" /> <property
40 name="usernameParameter" value="username" /> <property
41 name="passwordParameter" value="password" /> </bean>
42 -->
43 </beans>