bonjour je travail sur une application d'authentification avec spring et le framework acegi et j'ai le probleme de redirection vers ma page "Home.html " apres l'authentification pourtant que c'est deja declarer dans le fichier security.xml

et voici le fichier security.xml:

et plus exactement le redirection est declare dans le bean d'identifiant "formAuthenticationProcessingFilter"


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
 
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
 
<beans>
 
	<!-- ======================== FILTER CHAIN ======================= -->
	<bean id="filterChainProxy"
		class="org.acegisecurity.util.FilterChainProxy">
		<property name="filterInvocationDefinitionSource">
			<value>
				CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
				PATTERN_TYPE_APACHE_ANT
				/login=httpSessionContextIntegrationFilter,channelProcessingFilter
				/login.form=httpSessionContextIntegrationFilter,channelProcessingFilter
				/assets/**=httpSessionContextIntegrationFilter,channelProcessingFilter
				/j_acegi_security_check=channelProcessingFilter,httpSessionContextIntegrationFilter,formAuthenticationProcessingFilter
				/**=channelProcessingFilter,httpSessionContextIntegrationFilter,exceptionTranslationFilter,filterSecurityInterceptor
			</value>
		</property>
	</bean>
    
     <!-- ===================== SSL SWITCHING ==================== -->
    <bean id="channelProcessingFilter" class="org.springframework.security.securechannel.ChannelProcessingFilter">
        <property name="channelDecisionManager" ref="channelDecisionManager"/>
        <property name="filterInvocationDefinitionSource">
            <value>
                PATTERN_TYPE_APACHE_ANT
                /**=REQUIRES_SECURE_CHANNEL
            </value>
        </property>
    </bean>
 
    <bean id="channelDecisionManager" class="org.springframework.security.securechannel.ChannelDecisionManagerImpl">
        <property name="channelProcessors">
            <list>
                <bean class="org.springframework.security.securechannel.SecureChannelProcessor">
                    <property name="entryPoint" ref="channelEntryPoint"/>
                </bean>
                <bean class="org.springframework.security.securechannel.InsecureChannelProcessor">
                    <property name="entryPoint" ref="channelEntryPoint"/>
                </bean>
            </list>
        </property>
    </bean>
 
    <bean id="channelEntryPoint" class="org.springframework.security.securechannel.RetryWithHttpsEntryPoint">
        <property name="portMapper" ref="portMapper"/>
    </bean>
 
    <bean id="portMapper" class="org.springframework.security.util.PortMapperImpl">
        <property name="portMappings">
            <map>
                <entry key="80" value="443"/>
                <entry key="8080" value="8443"/>
                <entry key="5580" value="5543"/>
            </map>
        </property>
    </bean>
 
    
	<!-- ===================== httpSessionContextIntegrationFilter ==================== -->
	<bean id="httpSessionContextIntegrationFilter"
		  class="org.acegisecurity.context.HttpSessionContextIntegrationFilter">
	</bean>
 
	<!-- ===================== exceptionTranslationFilter ==================== -->
	<bean id="exceptionTranslationFilter"
		  class="org.acegisecurity.ui.ExceptionTranslationFilter">
		<property name="authenticationEntryPoint">
			<ref bean="formLoginAuthenticationEntryPoint" />
		</property>
	</bean>
 
	<!-- ===================== filterSecurityInterceptor ==================== -->
	<bean id="filterSecurityInterceptor"
		  class="org.acegisecurity.intercept.web.FilterSecurityInterceptor">
		<property name="authenticationManager">
			<ref bean="authenticationManager" />
		</property>
		<property name="accessDecisionManager">
			<ref bean="accessDecisionManager" />
		</property>
		<property name="objectDefinitionSource">
			<value>
				CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
				PATTERN_TYPE_APACHE_ANT
				/**=ROLE_AUTH
			</value>
		</property>
	</bean>
 
	<!-- ===================== formLoginAuthenticationEntryPoint ==================== -->
	<bean id="formLoginAuthenticationEntryPoint"
		  class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint">
		<property name="loginFormUrl">
			<value>/login</value>
		</property>
		<property name="forceHttps">
			<value>false</value>
		</property>
	</bean>
 
	<!-- ===================== formAuthenticationProcessingFilter ==================== -->
	<bean id="formAuthenticationProcessingFilter"
		class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
		<property name="authenticationManager">
			<ref bean="authenticationManager" />
		</property>
		<property name="authenticationFailureUrl">
			<value>/login?error=true</value>
		</property>
		<property name="defaultTargetUrl">
			<value>/home</value>
		</property>
		<property name="filterProcessesUrl">
			<value>/j_acegi_security_check</value>
		</property>
	</bean>
 
	<!-- ===================== authenticationManager ==================== -->
	<bean id="authenticationManager"
		class="org.acegisecurity.providers.ProviderManager">
		<property name="providers">
			<list>
				<ref local="authenticationProvider"/>
			</list>
		</property>
	</bean>
 
	<!-- ===================== authenticationProvider ==================== -->
	<bean id="authenticationProvider"
		class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
		<property name="userDetailsService"><ref bean="userDetailsService"/>
		</property>
		<property name="passwordEncoder" ref="shaEncoder"/>
	</bean>
 
	<!-- ===================== ShaEncoding ==================== -->
	<bean id="shaEncoder" class="org.acegisecurity.providers.encoding.ShaPasswordEncoder"/>
 
	<!-- ===================== userDetailsService ==================== -->
	<bean id="userDetailsService"
		class="tuto.webssh.security.UserDetailsServiceImpl">
		<property name="userManager"><ref bean="userManager"/>
		</property>
	</bean>
 
	<!-- ===================== accessDecisionManager ==================== -->
	<bean id="accessDecisionManager"
		  class="org.acegisecurity.vote.UnanimousBased">
		<property name="decisionVoters">
			<list>
				<ref bean="roleVoter" />
			</list>
		</property>
	</bean>
 
	<bean id="roleVoter" class="org.acegisecurity.vote.RoleVoter">
		<property name="rolePrefix">
			<value>ROLE_</value>
		</property>
	</bean>
 
</beans>
Dans l'attente de vos reponses et merci bcp