Using Spring Security 2.0.3.
I have written a custom AuthenticationProcessingFilter and AuthenticationProvider and want to plug this in to replace the form-login.
The problem is that AuthenticationProcessingFilterEntryPoint is not recognized, and I get this error:Code:<bean id="combinedAuthenticationProcessingFilter" class="web.security.CombinedAuthenticationProcessingFilter"> <property name="authenticationManager" ref="authenticationManager"/> <property name="authenticationFailureUrl" value="/login.html?error=true"/> <property name="defaultTargetUrl" value="/"/> <property name="filterProcessesUrl" value="/j_security_check"/> <security:custom-filter position="AUTHENTICATION_PROCESSING_FILTER"/> </bean> <bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter"> <property name="authenticationEntryPoint" ref="authenticationProcessingFilterEntryPoint"> </property> <property name="accessDeniedHandler"> <bean class="org.springframework.security.ui.AccessDeniedHandlerImpl"> <property name="errorPage" value="/error.html"/> </bean> </property> <security:custom-filter position="EXCEPTION_TRANSLATION_FILTER"/> </bean> <bean id="authenticationProcessingFilterEntryPoint" class="org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint"> <property name="loginFormUrl" value="/j_security_check"/> <property name="forceHttps" value="false"/> </bean> <bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager"> <property name="providers"> <list> <ref local="combinedAuthenticationProvider"/> <ref local="anonymousAuthenticationProvider"/> </list> </property> </bean> <bean id="combinedAuthenticationProvider" class="web.security.CombinedAuthenticationProvider"> <property name="accountLookupService" ref="accountLookupService"/> <property name="passwordEncoder" ref="passwordEncoder"/> <security:custom-authentication-provider/> </bean> <bean id="anonymousAuthenticationProvider" class="org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider"> <property name="key" value="anonymous"/> </bean>
Where do I put the custom-entry-point-ref attribute?Code:org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: No AuthenticationEntryPoint could be established. Please make sure you have a login mechanism configured through the namespace (such as form-login) or specify a custom AuthenticationEntryPoint with the custom-entry-point-ref attribute
My objective is to replace the form-login with my own bean configuration.
TIA,
Richard



