Jason Jiang (Migrated from SEC-2429) said:
When I use the namespace to configure spring context for RememberMe, I was confused that it didn't work. After debugging into it, i found my configuration is incorrect but no useful information logged.
The configuration below make the RememberMeAuthenticationProvider and TokenBasedRememberMeServices un-synced. I was trying to fix it and provide a patch. But I am not sure whether override or just warning messages is better. So I will leave it for you guys.
<beans:bean id="rememberMeServices" class="org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices">
<beans:constructor-arg name="key" value="new_app_key" />
<beans:constructor-arg name="userDetailsService" ref="userService" />/beans:property
/beans:bean
Jason Jiang (Migrated from SEC-2429) said:
When I use the namespace to configure spring context for RememberMe, I was confused that it didn't work. After debugging into it, i found my configuration is incorrect but no useful information logged.
The configuration below make the RememberMeAuthenticationProvider and TokenBasedRememberMeServices un-synced. I was trying to fix it and provide a patch. But I am not sure whether override or just warning messages is better. So I will leave it for you guys.
<beans:bean id="rememberMeServices" class="org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices">
<beans:constructor-arg name="key" value="new_app_key" />
<beans:constructor-arg name="userDetailsService" ref="userService" />/beans:property
/beans:bean