Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

SEC-1210: RememberMe filter misses UserDetailsService in default <http /> tag config when it is declared in parent app context #1462

spring-issuemaster opened this Issue Jul 24, 2009 · 1 comment


None yet
1 participant

Oliver Gierke (Migrated from SEC-1210) said:

Suppose the following scenarion: you have an UserDetailsService implementation declared in a config file loaded by a ContextLoaderListener. You declare an <http /> namespace element in the config file for the DispatcherServlet. When you try to launch this webapp this causes an exception thrown by AbstractRememberMeService claiming no UserDetailsService was found. SO somehow the namespace avoids to find the bean in a possibly available parent ApplicationContext.

A workaround to this behaviour is to explicitly define a <remember-me /> element and let user-service-ref explicitly point to the bean to be used.

Luke Taylor said:

I've modified UserDetailsServiceInjectionPostProcessor to check ancestor bean factories for a UserDetailsService if one isn't found in the current bean factory.

@spring-issuemaster spring-issuemaster added this to the 3.0.0 M2 milestone Feb 5, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment